When I make a trigger for multiplayer, let say 4 players, I usually create trigger for player 1 then duplicate the trigger for player 2 substituting all the variable from player 1 to player 2, then triplicate for player 3 and so on.
Is there a better way to do it without making duplicates from the first trigger? Like making just one trigger for all players?
Ex.
Player 1
Event
if player 1 keypress "b" then
Action
for player 1 on so on.......
Player 2
Event
if player 2 keypress "b" then
Action for player 2 and so so.....
would be easy if there is something like this
Event
if player (unknown till key is pressed or whoever will press) then
Action for player (unknown till key is pressed or whoever will press)
I know how to do for units, coz there is a "triggering unit" option.
But in this case
I saw there's "triggering player" but its grayed out from the UI keypress event.
There are both "Any Player" and "Any Key" presets for those fields. "Pressed Key" gets the key, and "Triggering Player", though greyed out, seems to get the pressing player.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi,
When I make a trigger for multiplayer, let say 4 players, I usually create trigger for player 1 then duplicate the trigger for player 2 substituting all the variable from player 1 to player 2, then triplicate for player 3 and so on.
Is there a better way to do it without making duplicates from the first trigger? Like making just one trigger for all players?
Ex.
Player 1 Event if player 1 keypress "b" then Action for player 1 on so on.......
Player 2 Event if player 2 keypress "b" then Action for player 2 and so so.....
would be easy if there is something like this
Event if player (unknown till key is pressed or whoever will press) then Action for player (unknown till key is pressed or whoever will press)
I know how to do for units, coz there is a "triggering unit" option.
But in this case I saw there's "triggering player" but its grayed out from the UI keypress event.
bump....
There are both "Any Player" and "Any Key" presets for those fields. "Pressed Key" gets the key, and "Triggering Player", though greyed out, seems to get the pressing player.