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!
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!
Trigger-Condition: OMGPlayerHasRunTheScript
exec in the action/script:
Code:OMGPlayerHasRunTheScript = true; publicVariable "OMGPlayerHasRunTheScript";
ECS Team - Poweruser
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?
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
ok so where does the name of my action/script go? In place of omgplayerhasrunthescript?
bump, anyone please?
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).