Jump to content
Sign in to follow this  
CombatComm

Trigger activated by action having been done?

Recommended Posts

Hey guys another question. I want a trigger to activate based on if a player has ran a script/ selcted a certain action that ran said script? Thanks!

Share this post


Link to post
Share on other sites

Trigger-Condition: OMGPlayerHasRunTheScript

exec in the action/script:

OMGPlayerHasRunTheScript = true;
publicVariable "OMGPlayerHasRunTheScript";

Share this post


Link to post
Share on other sites

Hey im little cunfusd as to what u mean? What goes into condition and what goes into action? Is hasrunthescript a command or is that ur replacment for my script?

Share this post


Link to post
Share on other sites

OMGPlayerHasRunTheScript==TRUE

Is I believe what goes into the condition of the trigger the script snip above defines the condition not sure if it is has to be absolutely equal to or just equal to == is absolute = is just equal to.

Hope that helps

Cheer's ChefD

Share this post


Link to post
Share on other sites

ok so where does the name of my action/script go? In place of omgplayerhasrunthescript?

Share this post


Link to post
Share on other sites

As dengibtsschon stated,

Put this in the conditionfield of the trigger (on the map):

OMGPlayerHasRunTheScript

Add these lines to your script:

OMGPlayerHasRunTheScript = true;

publicVariable "OMGPlayerHasRunTheScript";

"OMGPlayerHasRunTheScript" is just a random chosen name, can be really anything as long its an unique varname.. used to control the checkflag (in this case script executed).

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  

×