Jump to content

Mission editor scoring system for MP


Midnight

Recommended Posts

I'm with you RagnarDa, do not see any indication that mission editor can do this.

 

"Just use triggers and award points as condition of each trigger event."

 

Not sure what you imply here Ripcord, don't see any action to do this.

Midnite Signature.jpg

552334314_MidniteSignature.jpg.7c1678ea5639bd6d044b092eb97c300e.jpg

Link to comment
Share on other sites

Things are getting worse for me now!

 

The more I fiddled with the script, the more errors came popping up. Anything wrong with this?

 

******************************

mist.flagFunc.units_LOS{

unitset1 = {'991'},

altoffset1 = 2,

unitset2 = {'Player', 'Player2', 'player3},

altoffset2 = 0,

flag = 3,

stopflag = 4,

radius = 3000

}

********************

 

Above links to this

*************************************

local unit = Unit.getByName('Player', 'Player2', 'Player3')

local pos = unit:getPosition().p

local distance = math.sqrt((pos.x-PilotPosition.x)*(pos.x-PilotPosition.x)+(pos.z-PilotPosition.z)*(pos.z-PilotPosition.z))

if distance < 50 then

return true

else

return false

end

Midnite Signature.jpg

552334314_MidniteSignature.jpg.7c1678ea5639bd6d044b092eb97c300e.jpg

Link to comment
Share on other sites

I think a couple of errors are that you should have brackets around all parameters and are missing an inverted comma after player3. I prefer to use double inverted commas " as they are more obvious to see. And should your player3 have a lower case p?

 

mist.flagFunc.units_LOS({

unitset1 = {'991'},

altoffset1 = 2,

unitset2 = {'Player', 'Player2', 'player3'},

altoffset2 = 0,

flag = 3,

stopflag = 4,

radius = 3000

})

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...