|
cazador Apprentice
Joined: 08 Dec 2005 Posts: 108
|
Posted: Sun Jan 13, 2008 3:41 am
speedwalk event |
How do I create an event that is called when I begin to speed walk? What I basically want to do is to have the event enable a class that only works while I am speed walking.
|
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sun Jan 13, 2008 6:26 am |
Short answer: you don't. It'll probably be added in the future.
Long answer:
#oninput {^{n|e|s|w|nw|sw|ne|se|u|d}$} {#if (!@WalkInProgress AND %walkactive()) {WalkInProgress=1;do whatever}}
#event OnWalkEnd {WalkInProgress=0}
You might need (or want) to test the value of %destroom() as well, or instead of %walkactive(). |
|
|
|
|
|