Jump to content
Sign in to follow this  
NoRailgunner

help:getting moving coordinates with binocular

Recommended Posts

hi there, hope you can give me advice or little hand

in mission i want the player to aim with binocular moving targets (verhicles) then to call aircraft - wait them in safe area to hold firemission (maverick rockets..) until the player radio back to lock on or to tell new coordinates. Only the missiles should fly over enemy area.

Share this post


Link to post
Share on other sites

Maybe using the command knowsabout you could get what you want:

Notice im not trying this in the editor, but i believe it can be scripted using these variables using the SQS synthax:

_unit = player;

? _unit !(hasWeapon "Binocular") : exit // to leave out evryone else who has no binocs (not sure how binoc is spell ingame)

_object = jeepone; //or whatever you want to detect

@ (_unit knowsabout _object);

#loop

_position = [(getpos _object select 0), (getpos _object select 1)]; //this is to get the position of the object

~2; // small delay

player sidechat format ["object position: %1", _position]

? alive _object : goto "loop"; // until the object is destroyed his position will be updated

exit

Share this post


Link to post
Share on other sites

thanks, the planes are in another group.

knowsabout and reveal don't match exactly what i want mad_o.gif

maybe there is a good solution in few days, maybe i make a "dirty" camscript (its an option not a trick! ) ingame too

...all we can do is sit and wait whistle.gif

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×