• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Possible to create a effect only visable for 1 player?

Status
Not open for further replies.

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
I think the effect has to be created for everyone otherwise it will cause the player to desynchronize. You can however change the path of the effect created to a null string so that no visible effect is created for some players. Remember that all players need the string to be cached otherwise they will desynchronize (best done in an initilization function).
 
This is true, and the correct method is in the link I posited.

Starquizer's method will cause desync.

I tested it and it sadly desynced so sorry for that false info I gave earlier, I thought that only things that affect the map pathing and map pausing cause desync but I never knew about that thing Dr.S.G. mentioned "string is cached".
 

Dr Super Good

Spell Reviewer
Level 65
Joined
Jan 18, 2005
Messages
27,296
You just need to preload all string possibilites for the path on map initialization and it will never desynchronize. Once a string is made in WC3, it remains until the end of the map session.

You do still need to make the effect for everyone though, just you can change the model of the effect dependant on player. The reason for this is effects are a handle and any kind of handle creation or destruction outside of a few select types will cause players to desynchronize.
 
Status
Not open for further replies.
Top