Things you can't do with the GetLocalPlayer() voodoo are things that physically affect gameplay, such as units, damage and doodads.
As far as I know, the given code will work. The way GetLocalPlayer() works is by manipulating or causing trigger data to occur on a specific player's computer as opposed to all computers.
Here's something on how that code works specifically:
1. Initialize a string that selects which special effect will players will see
2a. On a single selected machine, the player is not looped
2b. On the rest of the machines, the other players will be looped and the string will be set to nothing
3. The special effect withing the given string will be created for all players, since for most players it is nulled, it will not show anything to them
Hope that helped. |