GetLocalPlayer() ?

Moon_Raven

New Member
Reaction score
8
Can somebody fully explain what GetLocalPlayer() does and give some example of how to use this because I don't really understand this and can't find a decent explanation on the net?
 

kingkingyyk3

Visitor (Welcome to the Jungle, Baby!)
Reaction score
216
GetLocalPlayer is used to shows something to a player only. Like Texttags, sounds and much more.

JASS:
function PlaySoundToPlayer takes sound s, player p returns nothing
    if GetLocalPlayer() == p then
       call PlaySoundBJ(s)
    endif
endfunction


Above is an example for playing sound to a player only.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top