[jass] unit's vertex color for only one player

dracolich

TH.net Regular
Reaction score
15
It is possible to change color of unit for exactly one player, when others will see old (default) color? If it is, do it exist in GUI?
 

dracolich

TH.net Regular
Reaction score
15
great thanks. but I heard, that GetLocalPlayer results desync. It's not matter for me, but still - does it?
 

Bribe

vJass errors are legion
Reaction score
67
Anything that changes gameplay or creates handles will cause a desync. Otherwise, light things like SetTerrainFog, DisplayTimedTextToPlayer, many others, are safe. For example you can play sound for player but you should not create sound for player.
 

tooltiperror

Super Moderator
Reaction score
231
But you can still use special effects in local code if done correctly.

JASS:

//! tooltiperror
  function onInit takes nothing returns nothing
      local string model="abilities//something//somethingelse//thunderclap.mdx"
      if GetLocalPlayer()==Player(0) then
        set model=" "
     endif
      call AddSpecialEffect(model,x,y)
  endfunction
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
I think (not tested) creating sounds locally is fine.
Just because like texttags it's pretty much a local thing.
Else, KillSoundWhenDone would desynchronise players which have wc3 sound option to off, or wc3 minimized, and probably some other fancy stuff.
 
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