Quantcast
How to identify when the player has jumped? - WoWInterface
Thread Tools Display Modes
08-14-21, 06:25 AM   #1
Alaror
A Murloc Raider
Join Date: Mar 2019
Posts: 6
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!
  Reply With Quote
08-14-21, 09:41 AM   #2
Tim
A Frostmaul Preserver
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 294
JumpOrAscendStart() is when the player jumps but, is a protected function. Your only option may be to monitor key presses for space bar.
__________________
AddOns: Tim @ WoWInterface
Characters: Hunter, Mage, Priest, Monk, DH,
Battle Tag: Tim#11172
Current PC Setup: PCPartPicker List
  Reply With Quote
08-14-21, 10:04 AM   #3
Alaror
A Murloc Raider
Join Date: Mar 2019
Posts: 6
Originally Posted by Tim View Post
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 );

Last edited by Alaror : 08-14-21 at 10:11 AM.
  Reply With Quote
08-14-21, 02:24 PM   #4
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,848
https://www.wowinterface.com/downloa...erClassic.html
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How to identify when the player has jumped?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off