• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] trigger turn off

is it possible to turn off a trigger for just one person?

  • yes

    Votes: 2 100.0%
  • no

    Votes: 0 0.0%

  • Total voters
    2
Status
Not open for further replies.
Level 2
Joined
Jul 4, 2011
Messages
14
Is it possible at all to turn off a trigger for just 1 person? or would I have to create a trigger for each person, while specifying them in each their trigger?
 
Level 2
Joined
Jul 4, 2011
Messages
14
Well I have a -random command, which should only be turned off for each person who has already chosen a hero.

example: if player 1, has chosen a hero, turn off trigger Random, for player 1
 
Level 15
Joined
Mar 25, 2016
Messages
1,327
boolean array is probably the best solution for this.

Instead of turning of you set the turned_off[player number of(player to turn off)] = true

In the trigger you want to turn off add a condition: turned_off[player number of(triggering player)] is equal to false
 
Status
Not open for further replies.
Top