Results 1 to 7 of 7

Thread: Trigger activated by action having been done?

  1. #1

    Trigger activated by action having been done?

    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!

  2. #2
    Trigger-Condition: OMGPlayerHasRunTheScript

    exec in the action/script:
    Code:
    OMGPlayerHasRunTheScript = true;
    publicVariable "OMGPlayerHasRunTheScript";
    ECS Team - Poweruser

  3. #3
    Staff Sergeant CombatComm's Avatar
    Join Date
    Aug 4 2009
    Location
    Travis AFB, CA
    Posts
    385
    Author of the Thread
    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?

  4. #4
    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

  5. #5
    Staff Sergeant CombatComm's Avatar
    Join Date
    Aug 4 2009
    Location
    Travis AFB, CA
    Posts
    385
    Author of the Thread
    ok so where does the name of my action/script go? In place of omgplayerhasrunthescript?

  6. #6
    Staff Sergeant CombatComm's Avatar
    Join Date
    Aug 4 2009
    Location
    Travis AFB, CA
    Posts
    385
    Author of the Thread
    bump, anyone please?

  7. #7
    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).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •