• 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.

How works GetLocalPlayer?

Status
Not open for further replies.
Level 24
Joined
Jun 26, 2020
Messages
1,914
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.
 
Level 24
Joined
Jun 26, 2020
Messages
1,914
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.
Top