• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

How works GetLocalPlayer?

Status
Not open for further replies.
Level 25
Joined
Jun 26, 2020
Messages
1,971
I wanna know how works the function GetLocalPlayer, because I heard that function takes the player that runs the trigger, but I proof it but always takes me incluiding if I use bots, so if you wanna explain me how really works a gonna thank you because maybe that thing happened because it takes only real players.
 
If you are player 1, then it returns Player(0). If you're player 12, it returns Player(11). In other words, it returns different values for different players.
you just call the function
Sorry, but that doesn't answer my question I wanna know what I have to do for run that function?

Edit: I mean, what do I do to take me as the local player?
 
Status
Not open for further replies.
Back
Top