Jump to content
Sign in to follow this  
anusmangler

How to have a task complete on player doing a "addaction"

Recommended Posts

Im stuck on something I think is simple. I have a tent with a addaction "this addAction["Skip Time", "skipTime.sqf"];" and a task that has the player "skip time" but I dont know how to get it so the task completes when the player uses tha addaction. Also in something semi related how do I have it so the player can only use the addaction once. Thanks in advanced!

Share this post


Link to post
Share on other sites

Write in your init.sqf skipped = false; publicVariable "skipped"; and in your skipTime.sqf skipped = true; publicVariable "skipped";

Place a trigger and write in the Condition-field skipped and let the task finish in the OnActivation-field.

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  

×