Table of Contents
1. Table of Contents
2. Description
3. Features
4. How to Install
5. Reserved Global Variables
6. Information
7. Macros
8. Functions
9. Example
10. Notes
11. Rules
12. Versions
13. Another MikuAuahDark scripts
Description
With this LUA, you can detect where the player move
Features basic detecting(left,right,up,down) diagonal detecting
How to Install
Install it as usual(but with *.txt instead of *.lua)
Reserved Global Variables SetPlayerPos* GetPlayerDirection ResetDirection MoveDirection
(*) - If you have a script that uses setpos, it's more safe to use this function instead
Information
Hooks: 2(spawn,always)
Size: 1023 Bytes
Lines: 56
Macros
Move_Up=1
Move_Down=2
Move_Left=4
Move_Right=8
Functions SetPlayerPos(id{number},x{number},y{number}) Info: same as setpos Returns: none GetPlayerDirection(id{number}) Info: get player current moving direction Parameters: id - player id Returns: unique number direction{number}
Example
1. Check if player going to left
if GetPlayerDirection(id)==Move_Left then
2. Check if player going to right down(diagonally)
if GetPlayerDirection(id)==Move_Right+Move_Down then
Notes
1. It uses always (be careful if you use it on for a server)
2. Suggestions? Bug reports? anything else? on comments
3. Well, pictures is useless
Rules You can use it (for your server) You can edit it (with your own risk) Say MikuAuahDark made it and NOT made by you Re-upload to another website. The file must not modified(original) and put me on credits Say this is yours a.k.a Steal Re-upload on unrealsoftware (even the edited version)