Thread: Running Attack
View Single Post
  #6  
Old 12-20-2011, 09:42 PM
callimuc callimuc is offline
callimuc's Avatar
Join Date: Nov 2010
Location: Germany
Posts: 1,015
callimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to beholdcallimuc is a splendid one to behold
Quote:
Originally Posted by Alpho View Post
We replaced the gani under the Attack function, which supprisingly resulted in the gani being replaced at all times.. That's kinda an issue, but here's what we have:

PHP Code:
    if (player.clientr.weaponClass in this.onehands) {
      
replaceani("walk""e_weapon-1h-attackwalk");
      
player.chat "replace";
      
sleep(.5);
      
replaceani("e_weapon-1h-attackwalk""walk");
    } 
Because it´s in a timeout?
In case yes, you shouldn´t use sleep() in a timeout
__________________
MEEP!
Reply With Quote