OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: NoMore on 26 Jul 2009, 13:44:34

Title: Turn off heli radar and move a trigger?
Post 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
Title: Re: Turn off heli radar and move a trigger?
Post by: Gruntage on 26 Jul 2009, 14:30:47
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:

Code: [Select]
?(_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
Title: Re: Turn off heli radar and move a trigger?
Post by: Walter_E_Kurtz on 26 Jul 2009, 22:39:01
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 use
Code: [Select]
trig1 setPos (getMarkerPos SomeMarker)
Title: Re: Turn off heli radar and move a trigger?
Post by: NoMore on 28 Jul 2009, 11:27:18
I still can't move the trigger... But never mind that then. The radar is more important.

Quote
?(_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
Title: Re: Turn off heli radar and move a trigger?
Post by: Gruntage on 28 Jul 2009, 11:32:36
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:

Code: [Select]
[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:

Code: [Select]
_unit = _this select 0

_unit sidechat "blablabla"

~2

[West,"hq"] sidechat "blablabla"

exit