Can someone teach me how to use the function below? I read that i can rotate placed buildings in the map using this.
"function SetImmovableUnitFacing takes unit u, real a returns nothing
call SetUnitPosition(u, GetUnitX(u), GetUnitY(u))
call SetUnitFacing(u, a)
endfunction"
Im trying to rotate nightelf buildings. I cant use stats-building false since the buildings are already placed in the map. I tried editing the degree values of the bldgs created but it worked only for undead buildings. The nightelf bldgs have root ability.. is that the reason?
"function SetImmovableUnitFacing takes unit u, real a returns nothing
call SetUnitPosition(u, GetUnitX(u), GetUnitY(u))
call SetUnitFacing(u, a)
endfunction"
Im trying to rotate nightelf buildings. I cant use stats-building false since the buildings are already placed in the map. I tried editing the degree values of the bldgs created but it worked only for undead buildings. The nightelf bldgs have root ability.. is that the reason?
Last edited: