Raised This Month: $ Target: $400
 0% 

pev_sequence reseting?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 04-12-2017 , 22:09   pev_sequence reseting?
Reply With Quote #1

Hello, I have a monster entity with a custom model, I'm using pev_sequence to assign him a custom animation and it works, however, when the sequence ends, pev_sequence reverts back to the original value (0) and starts playing his ACT_IDLE animation sequences.

Is there a way to hold the monster in the last frame of the desired animation?
__________________

Last edited by gabuch2; 04-12-2017 at 22:11.
gabuch2 is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 04-16-2017 , 12:57   Re: pev_sequence reseting?
Reply With Quote #2

Does anyone have an idea or a workaround? I really need to freeze the entity in that last frame.

I'd rather avoid using server_frame() to check whenever the entity's pev_frame around 255 and then setting pev_framerate to 0.
__________________
gabuch2 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-17-2017 , 18:52   Re: pev_sequence reseting?
Reply With Quote #3

About pev_sequence(), you are executing this function on PreThink of your entity?
__________________








CrazY. is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 04-18-2017 , 10:58   Re: pev_sequence reseting?
Reply With Quote #4

????????????????????

pev_sequence is not a function, it is set with set_pev.

I'm setting it in Ham_CheckEnemy.
__________________
gabuch2 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 04-18-2017 , 11:04   Re: pev_sequence reseting?
Reply With Quote #5

Function, native or forward, whatever, no matter, what matters is the way that you are running, you need help or you is a teacher of amxmodx and all fakemeta include?. I'm not going to waste my time here.
__________________









Last edited by CrazY.; 04-18-2017 at 11:06.
CrazY. is offline
Reply



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 17:46.


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