Jump to content
Sign in to follow this  
Warts

Trigger setvelocity ?

Recommended Posts

Iam trying to set velocity with a trigger and having trouble.

I know how to set it in the int feild of a object but cant get the trigger code correct.

Any help would be appreciated.

Thx

Share this post


Link to post
Share on other sites

G'day Warts,

Iam trying to set velocity with a trigger and having trouble.

I know how to set it in the int feild of a object but cant get the trigger code correct.

Any help would be appreciated.

Thx

I understand your new (I'm still kinda new too) but please remember to search before you post as this is a fairly generic question to ask. You can also check the Bis Wiki for help with scripting. Basically if you want to script a trigger, you need to create one and set the conditions for it. For example, if you put the following code in the init.sqf and placed a marker on the map wherever you wanted called: _speedUpPlane, it would create a trigger at the start of the mission that would fling a plane across the map at 1000 mp/h.

_trg = createTrigger["EmptyDetector", getPos _speedUpPlane];
_trg setTriggerArea [100, 100, 0, false];
_trg setTriggerActivation["WEST", "PRESENT", false];
_trg setTriggerStatements["this", "_plane setVelocity 1000", ""];

look up the createTrigger for more information.

Good Luck,

undercoverbrother

Share this post


Link to post
Share on other sites

Thx for the response and your help.

Edited by Warts

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  

×