Posted by alicethetic on Tue, 17 Jan 2012 18:13:06
I am relatively new to the whole scene of writing addons so bare with me. basically I need to find a way which I can determine if the character is mounted or not mounted. I tried looking thru the events and what not, couldnt really come up with anything suitable. or either I just overlooked this.
Posted by jnwhiteh on Tue, 17 Jan 2012 18:18:49
You can use the API function IsMounted. I can't tell you the events that fire when the player mounts/unmounts, but you can test this easily. Just run /eventtrace and then mount, and watch the events that scroll by and find the right one. Then unmount, and repeat.
Posted by alicethetic on Wed, 18 Jan 2012 17:03:09
Thank you for the response, this set me on the right track, that event tracker is most useful. Big help mate!