[open] IsUnitFalling(unitTag) / IsUnitJumping(unitTag)
Hi guys
There's already a function IsUnitSwimming(unitTag). I guess the two functions IsUnitFalling(unitTag) / IsUnitJumping(unitTag) wouldn't be hard to implement and could give quite a bit of nice insights on what is currently going on (analyzing a few things). Furthermore, i believe there might be a few nice things possible with these two functions. :banana: |
Quote:
The main thing that you would just need to change in order for it to work in non-Player Housing zones would be line 55: local x, y, z = GetPlayerWorldPositionInHouse() would need to be: local _, x, y, z = GetUnitWorldPosition("player") |
Quote:
|
IsUnitInAir and IsUnitFalling will be in the API next release (not the release that just went out.) At the moment only the local player unit will ever return true.
|
Quote:
Thanks, just saw that in the API patch notes. I will test this on the PTS when i have more time. Is there a reason for the restriction on the current player? And will this be changed in the future? |
All times are GMT -6. The time now is 03:40 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI