Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   SetAni()/SetCharAni() (https://forums.graalonline.com/forums/showthread.php?t=134256919)

DustyPorViva 11-13-2009 05:14 PM

SetAni()/SetCharAni()
 
They should have a built-in function that stops gani's from being set if the the new gani == current/old gani. For example, if my player's current gani is walk.gani, and I use setAni("walk",null), it shouldn't set the gani at all.

I might not have thought too much into this, but right now I can't see where you'd want to loop the same gani(as ganis have built-in loop functions), and all it does is force me to constantly script checks to make sure scripts aren't looping ganis not intended to be looped.

coreys 11-13-2009 09:14 PM

I usually make a proxy function that goes something like this
PHP Code:

function setGani(aniparamstartOver)
{
  if ((
this.ani == ani && startOver) || this.ani != ani)
    
setani(aniparam);




All times are GMT +2. The time now is 09:12 PM.

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