Jump to content
Sign in to follow this  
Desolate

Trigger that disables another script

Recommended Posts

I'm looking to setup a trigger that when entered kills the tlr comp script. For instance in a gang area, then restarts it when you leave. That way kills vs unarmed players in a gang area receive no compensation.

I understand the "scriptname" terminate works, but how can I restart the loop after it is stopped.

Share this post


Link to post
Share on other sites

Tried "terminate scriptHandle" in the "On Activation" part of the trigger, and "scriptHandle = [params] execVM "scriptName.sqf"" in the "On Deactivation" part? All without the "" ofcourse, except around the scriptName.sqf. That should work if you have proper conditions set up.

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  

×