AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   pev_sequence reseting? (https://forums.alliedmods.net/showthread.php?t=296123)

gabuch2 04-12-2017 22:09

pev_sequence reseting?
 
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?

gabuch2 04-16-2017 12:57

Re: pev_sequence reseting?
 
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.

CrazY. 04-17-2017 18:52

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

gabuch2 04-18-2017 10:58

Re: pev_sequence reseting?
 
????????????????????

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

I'm setting it in Ham_CheckEnemy.

CrazY. 04-18-2017 11:04

Re: pev_sequence reseting?
 
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.


All times are GMT -4. The time now is 17:46.

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