AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is animation ended ? ( Looping a sequence ) Help plz.. (https://forums.alliedmods.net/showthread.php?t=159915)

byetovice 06-23-2011 10:12

Is animation ended ? ( Looping a sequence ) Help plz..
 
Hello.:mrgreen:
In FM_Think, i'm using this :
PHP Code:

Util_PlayAnimation(id57)

stock Util_PlayAnimation(indexsequenceFloatframerate 1.0
{
    
entity_set_float(indexEV_FL_animtimeget_gametime()); 
    
entity_set_float(indexEV_FL_framerate,  framerate);  
    
entity_set_int(indexEV_INT_sequencesequence); 
    


ITs not working, because its trying to play this animation Per milisecond.

I want to make something like this :
PHP Code:

public Forward_Think(id)
{

if(....
AnimationEnded....)
{
Attacking[id] = false
}

if(!
Attacking[id])
{
Util_PlayAnimation(id57// attack animation
Attacking[id] = true;
}



Please help me..


All times are GMT -4. The time now is 23:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.