Special effects and local player

black.sheep

Active Member
Reaction score
24
Okay, im thinking of making a spell that really screws with the players head, causing all these crazy things to happen that wont be seen by other players.
Problem is, I dont know much about GetLocalPlayer() and when I used it before in my map, it caused desyncs.
So, how would I go around doing this
JASS:
if GetLocalPlayer(p) then
set e = AddSpecialEffect(...)
endif

Basicly, I want to remove e later in the game, but I dont know how to do it without causing desyncs.
 

saw792

Is known to say things. That is all.
Reaction score
280
Even safer:
JASS:
local effect e
local string s = ""
set s = "modelpath"
if GetLocalPlayer() != whichPlayer then
    set s = ""
endif
set e = AddSpecialEffect(s, ...)


But generally unnecessary... <insert appropriate smiley here>
 

Azlier

Old World Ghost
Reaction score
461
That's not any safer. "" is in the string table by default. I tested that.
 

saw792

Is known to say things. That is all.
Reaction score
280
Dammit... thought I was clever for a minute.
 

saw792

Is known to say things. That is all.
Reaction score
280
Mm... I think I remembered posting something in a thread like this and not reading what came after it. :) Good times *sits in armchair with bottle of <insert favourite beverage here>*
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top