Thanks Sui, I think i might have to refrase the line
So I have to find an alternate route around my problem. I need to check if a random Object ID is placed inside a trigger.
I have allready figured out that there will be now way to check for MAPobjects since there is no class, so therefor by "other way around" I thought of making trigger zones like those NoFireZones in the SP/MP pack from Snypier. A few Examples..
This Example from [RT]FatherBob chooses a predifined ID and uses it as WP..
#Start
_unit = _this select 0
_obj1 = getpos (object 79954)
_obj2 = getpos (object 79958)
_obj3 = getpos (object 79895)
_obj4 = getpos (object 79966)
_pool = [_obj1,_obj2,_obj3,_obj4]
_choose = _pool select (random 3)
[_unit,1] SetWPPos _choose
@ UnitReady [_unit,1]
Goto "start"
This altered experiment chooses a complete random WP..
#Start
_Unit = _this select 0
#Loop
_Xnum = Random (50000)
_Xnum = _Xnum -(_Xnum Mod1)
[_Unit,1] SetWPPos _Xnum
@ UnitReady [_unit,1]
Goto "Loop"
#End
Exit
Case one is no problem at all, since it works with predefined IDs there is no need to check up on it, but Case two -the altered and funny one- I have to place a Marker og GL on the map that makes a check to see if it is a legal or NoGo number..I know that it would be easy to make the extra line in the Case Two script above the line:
[_Unit,1] SetWPPos _Xnum
"MyMarker" SetMarkerPos GetPos (object _Xnum)
That would make the Marker jump to the selected ID before it assigns the WP to _Unit, but what syntax/line should be added to make it check up on the NoGo zones,..
and should I make/add the NoGo triggers to an Array..
[RT]SuperTron[/Color]