• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How works GetLocalPlayer?

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