- Joined
- Jun 1, 2009
- Messages
- 137
Hi! Does adding\removing players to a player group leaks? Will it leak if the player group become empty?
My goal is to display a text messages for a certain players.
Atm I'm using a tempPlayerGroup, but ain't that less efficient rather than creating one constant player group?
Example:
My goal is to display a text messages for a certain players.
Atm I'm using a tempPlayerGroup, but ain't that less efficient rather than creating one constant player group?
Example:
-
Hinit
-

Events
-

Conditions
-

Actions
-


Custom script: set udg_A = CreateForce()
-


Player Group - Add Player 1 (Red) to A
-


Player Group - Add Player 2 (Blue) to A
-
-
-
Hon
-

Events
-


Player - Player 1 (Red) types a chat message containing -hon as A substring
-


Player - Player 2 (Blue) types a chat message containing -hon as A substring
-
-

Conditions
-

Actions
-


Player Group - Add (Triggering player) to A
-
-
-
Hoff
-

Events
-


Player - Player 1 (Red) types a chat message containing -hoff as A substring
-


Player - Player 2 (Blue) types a chat message containing -hoff as A substring
-
-

Conditions
-

Actions
-


Player Group - Remove (Triggering player) from A.
-
-
-
Hint
-

Events
-


Time - Every 2.00 seconds of game time
-
-

Conditions
-

Actions
-


Game - Display to A the text: Hint!
-
-





Just try to clean up the objects you no longer "need" or that you are losing reference to (e.g. you expect to re-assign that variable to something else, so that object will no longer have anything "referencing" it). And pay the most attention to the periodic triggers since that is where memory leaks truly add up.