- Joined
- May 11, 2012
- Messages
- 2,103
how can i make the facing of two units like face to face?
call SetUnitFacing(unit1, GetUnitFacing(unit2) + 180)
set angle = Atan2(GetUnitY(unit2) - GetUnitY(unit1), GetUnitX(unit2) - GetUnitX(unit1))*180/bj_PI
call SetUnitFacing(unit2, angle)