English MikuAuahDark: Move Direction V1.0(part 1 of 2) icon

4 comments
03.01.14 05:55:54 am
like 3 like it!
742 b, 70 Downloads
MikuAuahDark
User
Offline Off
Move Direction by MikuAuahDark
This is part 1 of 2 script that i upload. Part 2: file cs2d MikuAuahDark: Custom Trigger If(part 2 of 2) (1)

∗ 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 cs2d cmd setpos, it's more safe to use this function instead

∗ Information ∗
Hooks: 2(cs2d lua hook spawn,cs2d lua hook always)
Size: 1023 Bytes
Lines: 56

∗ Macros ∗
Code:
Move_Up=1
Move_Down=2
Move_Left=4
Move_Right=8


∗ Functions ∗
> SetPlayerPos(id{number},x{number},y{number})
> • Info: same as cs2d cmd 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
Code:
if GetPlayerDirection(id)==Move_Left then

2. Check if player going to right down(diagonally)
Code:
if GetPlayerDirection(id)==Move_Right+Move_Down then


∗ Notes ∗
1. It uses cs2d lua hook 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 user 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)

∗ Versions ∗
> V1.0
> > ADDED Initial Release

∗ Another MikuAuahDark Scripts ∗
file cs2d MikuAuahDark: Custom Trigger If(part 2 of 2) (1)(Part 2 upload)
file cs2d Env_Laser v1.0 (6)
file cs2d Animated Image v2.0 (5)
edited 1×, last 03.01.14 05:59:55 am
ok This file has been reviewed and approved by Seekay (04.12.15 01:07:42 pm)

Comments

4 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
04.04.14 08:14:16 pm
like I like it!
Up
TopNotch
User
Offline Off
You have many useful scripts.
03.01.14 11:13:00 am
Up
MikuAuahDark
User
Offline Off
@user EXOSuit: What mode? Read the description correctly.
03.01.14 08:34:03 am
like I like it!
Up
EXOSuit
User
Offline Off
What this mode Miku Hatsune
03.01.14 07:12:32 am
like I like it!
Up
Lobwver
User
Offline Off
very nice file
To the start Previous 1 Next To the start