- Joined
- Mar 24, 2010
- Messages
- 950
whats the best way to make this group then remove it for leaks
call DestroyForce(udg_Temp_PlayerGroup)
for the sake of it being easier to add names i would like to be able to use the 2nd one but does that work the same way as the first for destroying a player group to clean leaks?
Or if i do it the 2nd way does the group even need to be cleaned if i just use
- Set Temp_PlayerGroup = (All players matching (((Name of (Matching player)) Equal to PlayerName) or (((Name of (Matching player)) Equal to PlayerName2) or (((Name of (Matching player)) Equal to PlayerName3) or ((Name of (Matching player)) Equal to PlayerName4)))))
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Name of (Picked player)) Equal to PlayerName
- (Name of (Picked player)) Equal to PlayerName2
- (Name of (Picked player)) Equal to PlayerName3
- (Name of (Picked player)) Equal to PlayerName4
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Player Group - Add (Picked player) to Temp_PlayerGroup
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
call DestroyForce(udg_Temp_PlayerGroup)
for the sake of it being easier to add names i would like to be able to use the 2nd one but does that work the same way as the first for destroying a player group to clean leaks?
Or if i do it the 2nd way does the group even need to be cleaned if i just use
- Player Group - Remove all players from Temp_PlayerGroup