Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   What Is With Ani Functions... (https://forums.graalonline.com/forums/showthread.php?t=74988)

killerogue 06-30-2007 05:46 PM

What Is With Ani Functions...
 
PHP Code:

function onKeyPressed(code, key) {
  switch (
key) {
    case 
"z":
      
setani("punch", "");
      
temp.coords = {player.x + 0.5 + vecx(player.dir) * 2, player.y - 1 + vecy(player.dir) * 2};
      
triggerserver("weapon", this.name, player.account, coords[0], coords[1]);
    break;
  }  
} 

Seems to not want to work. Yes, the rest of the script is working.

Inverness 06-30-2007 05:57 PM

That is clientside btw, so don't even mention that.

killerogue 06-30-2007 06:04 PM

Oh, problem solved. Custom movement on timeouts are a *****. :[

zokemon 06-30-2007 10:07 PM

Quote:

Originally Posted by killerogue (Post 1324213)
Oh, problem solved. Custom movement on timeouts are a *****. :[

Stan, look at my Movement script! It would help you a ton with what you are trying to do.


All times are GMT +2. The time now is 02:01 PM.

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