Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Frame check (https://forums.graalonline.com/forums/showthread.php?t=134266694)

greggiles 06-21-2012 04:27 AM

Frame check
 
My friend told me about this.
How would you do a frame check for a gani?
(checking what frame the gani is in)

Also, is there a way to set the frame?

DustyPorViva 06-21-2012 04:29 AM

player.anistep or this.anistep to check for the frame it's currently on

setani("walk[2]",null) setcharani("walk[2]",null) to set it to a specific frame(gani will not 'play' when set like this).

DustyPorViva 06-21-2012 04:45 AM

Quote:

Originally Posted by cbk1994 (Post 1697923)
Make sure to put that "walk[2]" in quotes.

Ah yes, my mistake :)

Crow 06-21-2012 07:48 AM

One more thing: you could also do this:
PHP Code:

setAni("walk[3]"nil);
setAni("walk"nil); 

This will play the "walk" gani, but from frame 4 (starting at 0, as usual) onwards. Might be useful.


All times are GMT +2. The time now is 10:46 PM.

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