WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   How to identify when the player has jumped? (https://www.wowinterface.com/forums/showthread.php?t=58892)

Alaror 08-14-21 06:25 AM

How to identify when the player has jumped?
 
Hey all!

The title pretty much sums up what I'm trying to find. I'd like to record when the player has jumped, but haven't been able to find a way to identify when this happens. Thanks in advance for any help you can provide!

Tim 08-14-21 09:41 AM

JumpOrAscendStart() is when the player jumps but, is a protected function. Your only option may be to monitor key presses for space bar.

Alaror 08-14-21 10:04 AM

Quote:

Originally Posted by Tim (Post 339710)
JumpOrAscendStart() is when the player jumps but, is a protected function. Your only option may be to monitor key presses for space bar.

Oh nice, didn't know about that function. WoWWiki has exactly what I'm looking for.

Lua Code:
  1. hooksecurefunc( "JumpOrAscendStart", function()
  2.   DEFAULT_CHAT_FRAME:AddMessage( "Jump" );
  3. end );

Seerah 08-14-21 02:24 PM

https://www.wowinterface.com/downloa...erClassic.html


All times are GMT -6. The time now is 12:16 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI