Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Checking player animation (https://forums.graalonline.com/forums/showthread.php?t=3643)

G_yoshi 05-27-2001 06:10 PM

Checking player animation
 
i need some help with this...i i know i use if (strequal(#m,...) but what is the format for inside? do i add the .gani or just put it as the name of the gani...

btw, does it make a difference if its in a timeout loop?

Krakken_2001 05-27-2001 08:43 PM

OK... to test for the animation... yes you do use the if (strequals(#m,...)) loop and the bit inside would be the gani name without .gani.

So for example to test if the player is swimming use...

if (strequals(#m, swim)) {
...stuff here if swimming...
}

#m(index) is the same... it just uses the parameters too...
so, index = parameter

Krakken_2001 05-27-2001 08:43 PM

hope this helps

G_yoshi 05-28-2001 06:15 AM

Hmm.....i had it right before i started this thread...but for some reason, when i check to see if the player is in a bed, it does not work. If i can get that working, that will greatly help me upgrade my meter system :D


All times are GMT +2. The time now is 08:38 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.