I was just wondering if there is better\ faster way to return a custom type then using a for loop.
for instance, if you have 100 player types with individual names and ids, but you wanted to find a player named Joe so you could smack him with a rubber duck, is the below code the only way to pick him out of a group of 100 players?
Thanks for any help here.
EDITED: Fixed the player name call, thanks KED
for instance, if you have 100 player types with individual names and ids, but you wanted to find a player named Joe so you could smack him with a rubber duck, is the below code the only way to pick him out of a group of 100 players?
For P.player = Each player If P\name = "Joe" Then Smack_With_Rubber_Duck("Joe") Exit EndIf Next
Thanks for any help here.
EDITED: Fixed the player name call, thanks KED