Jump to content
Sign in to follow this  
gnosis

createTrigger and types

Recommended Posts

I've been trying to programatically create an "END" trigger. The biki has the cryptic infomation;

Quote[/b] ]

Creates a new trigger on the given position.

An object of the given type is created; this type must be a class name in CfgNonAIVehicles or CfgVehicles with simulation = detector.

An array containing all units that have activated the trigger is available via list triggerobj.

The example lists "EmptyDetector" as a type and that one works just fine, but is there another type for creating an "END" trigger programatically? I also tried the "forceEnd" command in an "EmptyDetector" but that doesn't work.

Using type "END1" etc, does not create anything other than a null-object.

Any help from you coding gurus out there is greatly appreciated.

gnosis

Share this post


Link to post
Share on other sites

DUH!! To answer my own post.

Use setTriggerType "END1"

How in the world did I miss that one wink_o.gif

gnosis

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  

×