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!
If you mean a trigger enhanced spell's effect...
You use GetLocalPlayer to display a blank model for all players who should not see the effect. Remember to generate the model path string for all players though to avoid a split.
There's a great tutorial by PurgeandFire111 about that, though it does require some Jass/custom script in GUI. Scroll down to" "Manipulating the Editor's System:"
What the code from the tutorial would look like in GUI:
Custom script: local string s = "MY_SFX_PATH.mdx"
Custom script: if GetLocalPlayer() != Player(0) then
@ZendZz trigger above is very right, but if you have problems with custom scripting use String variables, since watermelon_1234 wrote jass script
Set Effectstring ="<stuff>"
Now you have to use function which runs through players egzecuting code, filtering all players when finished it's actions. There is no way to get rid of jass/custom script here.
What DSG mentioned, is fact that if don't set string before filtering through players via GetLocalPlayer() it will cause desync. Rest actions like above, but again, you can use normal GUI actions if you have troubles for nulling string (empty string) and for Creating and destroing effects.
Set Effectstring = <Empty string>
Special Effect - Create ...
Special Effect - Destroy (Last created special effect)
Actually, aslong as you preload the string it should not make a difference (as strings never are destroyed once created). There is only a problem if you create a unique string for a single player.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.