Raised This Month: $ Target: $400
 0% 

Is animation ended ? ( Looping a sequence ) Help plz..


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
byetovice
Senior Member
Join Date: Nov 2009
Location: Turkey
Old 06-23-2011 , 10:12   Is animation ended ? ( Looping a sequence ) Help plz..
Reply With Quote #1

Hello.
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..
__________________
Working on mods..
byetovice is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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