FhelZone
Have a drink of a nice cold mellowberry juice!
- Reaction score
- 103
I have get local players for hiding and unhiding units for every player, will this cause desyncs?
Trigger:
- Melee Initialization
- Events
- Time - Elapsed game time is 5.00 seconds
- Conditions
- Actions
- Custom script: if GetLocalPlayer() == Player(0) then
- Unit - Hide Sorceress 0000 <gen>
- Custom script: endif
tested and nothing happen, but hid the unit. So no it wont.
I never got Desync. :\
Tested it just now, seems that you can't hide and unhide units with get local. I already thought of an alternative for this and now I'm in big trouble making fade filters only appear to specific players.
library PlayerFilter
function FilterPlayer takes player whichPlayer, real duration, blendmode bmode, string tex returns nothing
if ( GetLocalPlayer() == whichPlayer ) then
call SetCineFilterTexture(tex)
call SetCineFilterBlendMode(bmode)
call SetCineFilterTexMapFlags(TEXMAP_FLAG_NONE)
call SetCineFilterStartUV(0, 0, 1, 1)
call SetCineFilterEndUV(0, 0, 1, 1)
call SetCineFilterStartColor(PercentTo255(100), PercentTo255(0), PercentTo255(0), PercentTo255(100-0))
call SetCineFilterEndColor(PercentTo255(100), PercentTo255(0), PercentTo255(0), PercentTo255(100-100))
call SetCineFilterDuration(duration)
call DisplayCineFilter(true)
endif
endfunction
endlibrary
//Does not desync
//Example Usage:
//call FilterPlayer(Player(0), 3, BLEND_MODE_BLEND, "ReplaceableTextures\\CameraMasks\\DreamFilter_Mask.blp")