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

Local Effects

Status
Not open for further replies.
Creating special effect localy will indeed desync if it is what you mean.

This is safe :
JASS:
local effect e
local string s=""
if (GetLocalPlayer() == GetTriggerPlayer()) then
    set s="MyEffect"
endif
set e=AddSpecialEffect(s,0,0)

This is unsafe (because the handle ids will desync) :
JASS:
local effect e
if (GetLocalPlayer() == GetTriggerPlayer()) then
    set e=AddSpecialEffect("MyEffect.mdl",0,0)
endif

For what I know, only text tags can be created localy because their handle ids are ranked from 100 to 0.
 
Status
Not open for further replies.
Top