OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: D_P_ on 17 Mar 2007, 04:37:34
-
anyone know if it's possible to setpos a trigger? like can you move a respawn killzone 10meters back ingame? i know, weird question.
-
I'm not sure if it will work but you could always test it by getting the position of the trigger then setpos the trigger and then compare. Alternatively you can create a new trigger on the fly at the new location.
-
I've tried getting it to move but can't :(
Alternatively you can create a new trigger on the fly at the new location.
^^not sure I understand? :dunno:
-
As far as I know Thobson used one trigger for multiple purposes in Abandoned Armies, so you should be able to move them. He also advised me once to keep a trigger following the car (setPos it on the car while it drives.
Should work.
-
Yes (as cheetah already points out), you can setPos a trigger :yes:
Just name your trigger and it can be accessed like any other object (setPossed, deleted..).
not sure I understand?
hoz means that as ArmA includes commands for creating a trigger and setting it's attributes you can create fully functional triggers by scripting
createTrigger (http://www.ofpec.com/COMREF/ArmAOnly/index.php?action=list&game=All&letter=c#createTrigger)
And the commands to set all the 'innards' of the trigger start from
setTriggerActivation (http://www.ofpec.com/COMREF/ArmAOnly/index.php?action=list&game=All&letter=s#setTriggerActivation)
-
wow - thanks - i was unaware of the createtrigger and settrigger activation!
That looks awesome :D
thanks again~
-
I know this thread is old but the info is still needed.
How do I move a trigger or create a trigger?
Move would be preferable.
The links in this thread no longer work.
-
Yes (as cheetah already points out), you can setPos a trigger :yes:
Just name your trigger and it can be accessed like any other object (setPossed, deleted..).
-
So I use,
trigname setpos getpos GLname
I knew it all along, just couldn't remember.