OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: NoMore on 26 Jul 2009, 13:44:34
-
As the headline says...
Any way to make things not appear on a helicopter radar or simply turn it off?
Second how do you move a trigger? Saw another threat about it but it doesn't work.
It was something like this:
trig1 setpos (getpos SomeObject)
NoMore from me ;)
Thank you
-
I dont think u can turn off a heli's radar :dunno: However i think the Knowsabout command could be useful in this scenario. Perhaps having:
?(_unit knowsabout _target > 5): [_unit] exec "targetfound.sqs"
This basically increases the time it takes for a unit to detect an enemy unit. I THINK lol ;)
_unit would of course be your chopper and _target would be like an enemy tank or something.
As for moving a trigger, im sure it is possible but ive never tried it :dunno:
Hope this helps
Gruntage
-
Moving a trigger ought to work in the way you expect.
Make sure you have given the correct names to the trigger and object.
Ensure that SomeObject is really an object; if it's a marker, you'd have to usetrig1 setPos (getMarkerPos SomeMarker)
-
I still can't move the trigger... But never mind that then. The radar is more important.
?(_unit knowsabout _target > 5): [_unit] exec "targetfound.sqs"
What shall i put where - is it all part of a script?
And what is targetfound.sqs?
Thanks
NoMore
-
This can be put in the Init.sqs of your mission, or in a trigger. Targetfound.sqs is what happens when a target is located, you might want put in the script:
[West,"hq"] sidechat "We've found a tank at DF25"
_unit = your chopper
_target = an enemy unit like a tank or uaz
the targetfound.sqs would look a little like this:
_unit = _this select 0
_unit sidechat "blablabla"
~2
[West,"hq"] sidechat "blablabla"
exit