- Joined
- Apr 23, 2011
- Messages
- 460
if i call to destroy an object (visibility modifier) within a hashtable through a loop that goes over all possible handles, will it run over the null values and still delete the correct values?
Example: Scenario: 6 player game. 3 players are in the game in slots 2 5 and 6. Player 2 leaves. The trigger will start setting multiboard values to notify others that the player left, and start deleting all hashtable values for all players (1 through 6) that are saved in the handles (values 1-6) of (Player Number of (Triggering Player)) then delete all the player values of that player from handles (Player Number of (Triggering Player)) of (values 1-6) to clean it up. The method of which the visibility modifiers are created is a player group variable is created and all players matching conditions is user and is playing are matched, then modifiers for players that exist are created.
If needed I can post my triggers for it, but I think this is a simple issue.
Example: Scenario: 6 player game. 3 players are in the game in slots 2 5 and 6. Player 2 leaves. The trigger will start setting multiboard values to notify others that the player left, and start deleting all hashtable values for all players (1 through 6) that are saved in the handles (values 1-6) of (Player Number of (Triggering Player)) then delete all the player values of that player from handles (Player Number of (Triggering Player)) of (values 1-6) to clean it up. The method of which the visibility modifiers are created is a player group variable is created and all players matching conditions is user and is playing are matched, then modifiers for players that exist are created.
If needed I can post my triggers for it, but I think this is a simple issue.