Jump to content
Sign in to follow this  
Dan7

move a trigger "guarded by"

Recommended Posts

Hi,

Why I can not move if a trigger type in "guarded by EAST", but it works with type "NONE" and I use the command: trigger1 setPos getPos unit1

I tried with my trigger1 type "NONE" and and another trigger : trigger1 settriggertype "EAST G" (when it was moved when I wanted)

... But that still does not work ...

thk

Share this post


Link to post
Share on other sites

It doesn't want to move so I'd look at creating one when it's needed.

so in a script it would look something like this depending how you want it set up.

_trg = createTrigger["EmptyDetector",getPos unit1];
_trg setTriggerArea[50,50,0,false];  
_trg setTriggerActivation ["any","present",false];
_trg setTriggerStatements["this","", ""];
_trg setTriggerType "EAST G";

Share this post


Link to post
Share on other sites

Ok, thank you for this soluce.

As against to activate it, I put this code in a Init.sqs but nothing happens ...

Share this post


Link to post
Share on other sites
Ok, thank you for this soluce.

As against to activate it, I put this code in a Init.sqs but nothing happens ...

Put it in init.sqf and not an init.sqs! There's no need to ever use .sqs... it's the older scripting language for Operation Flashpoint.

EDIT: It probably shouldn't be in the init.sqf either actually.... but called in another script when needed as F2k Sel suggested.

Edited by twirly
Spelling error && added stuff

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  

×