lep / jassdoc

Document the WarCraft 3 API
52 stars 20 forks source link

Add note to SetUnitFacing, SetUnitFacingTimed #118

Closed WaterKnight closed 10 months ago

WaterKnight commented 10 months ago

If the duration is too low, while the unit is moving, those functions won't be effective. The 0.1 seems a bit magical, but I tested just below 0.1 in comparison and with different turn rates and movement types.

Luashine commented 10 months ago

If duration < 0.1, while the unit is moving,

Is that an OR or an AND?

Yes these functions behave weirdly, I tried the timed one but it was undershooting for most low duration values.

WaterKnight commented 10 months ago

If duration < 0.1, while the unit is moving,

Is that an OR or an AND?

It's an AND, I was only concerned about the behavior while the unit is moving/standing and tried if it can be used to check if a unit is moving/standing but it would be rather inaccurate and not without side effects.