| 01-15-2007, 10:36 PM | #1 |
Is it possible to set a unit's animation for just one player? I was thinking that it might be possible to do it without causing a server split by using the same trick as the one used to create a special effect for a local player. JASS:function SetUnitAnimationLocal takes unit u, string animation, player p returns nothing local string anim = animation if p != GetLocalPlayer() then set anim = "" endif call SetUnitAnimation(u, anim) endfunction Since I can't host games on bnet, I cant easily host this myself. EDIT: I got a generous friend to host a test of this, and it does in fact work perfectly, with no server splits. |
