Help with Unit Group Trigs

Alex

New Member
Reaction score
0
I might sound dumb but, instead of doing random player in unit group can i do all players in unit group, Im trying to change cap and i dont want to do a new action for each player.
 

tommerbob

Minecraft. :D
Reaction score
110
Do you mean player groups or unit groups? You mean like this?

Trigger:
  • Player Group - Pick every player in (player group) and do (actions)
    • Loops - Actions
 

skyblader

You're living only because it's illegal killing.
Reaction score
159
That leaks, if I'm not wrong. You should set A player group variable = All players. Then use the variable, and clear it afterwards. Though frankly, I don't remember how.
 

tommerbob

Minecraft. :D
Reaction score
110
That leaks, if I'm not wrong. You should set A player group variable = All players. Then use the variable, and clear it afterwards. Though frankly, I don't remember how.

Yes this is correct. Set the player group to a variable, such as TempPlayerGroup, and then do this custom script at the end of the trigger:

Trigger:
  • custom script: call DestroyForce(udg_TempPlayerGroup)


"TempPlayerGroup" is whatever the name of your player group variable is.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top