• 🏆 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!

Effect visible for a player

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
Use GetLocalPlayer to determine the model path used by the effect. For example if GetLocalPlayer is inside the player group then use the visible model path, otherwise use an empty string model path. It is important that both model paths always be declared before such selection takes place to avoid desync. For logical reasons the effect must be created for all clients to avoid a desync, hence why it is created on some with an invisible (empty string) model when they are not meant to see it.
 
Status
Not open for further replies.
Top