Jump to content
Sign in to follow this  
evans d [16aa]

Creating Trigger via Script

Recommended Posts

Ladies and gentlemen,

Another problem now, and one that has me rather baffled. I'm trying to create a trigger via a script (who'd have thunk it?) but my code isn't working.

No errors get flagged, and therefore I don't know what information I can give you to help you fix this.

The script below is activated by a trigger named triggerCreation

flightPathTriggerCreate.sqf

_flightPathTrigger = createTrigger ["flightPathTrigger", getMarkerPos "flightTriggerMarker"];
_flightPathTrigger setTriggerArea [50, 50, 0, false ];
_flightPathTrigger setTriggerActivation ["GUER", "PRESENT", false];
_flightPathTrigger setTriggerStatements ["this", "rec = [] spawn flightPath", ""];

deleteVehicle triggerCreation;

Many thanks all,

Bashkire

Share this post


Link to post
Share on other sites

Needs to be "emptydetector"

_flightPathTrigger = createTrigger ["EmptyDetector", getMarkerPos "flightTriggerMarker"];

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  

×