AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   replace player animnation (https://forums.alliedmods.net/showthread.php?t=326552)

cpt.nemo 08-05-2020 15:44

replace player animnation
 
Hello, my dear friends!

How to replace running animation player models -> walking animation

Code:

set_entvar(id, var_sequence, 3)
set_entvar(id, var_gaitsequence, 3)
set_entvar(id, var_frame, 1.0)
set_entvar(id, var_animtime, 100.0)
set_entvar(id, var_framerate, 24.0)

I used this in a Client_PreThink function, but the animation was triggered when I jumped :(
I only want it when I run.

Sorry for google translate... I'm russian boy and i bad speak english

cpt.nemo 08-05-2020 15:46

Re: replace player animnation
 
run sequence => walk sequence
(replace)
maybe it's clearer this way
sorry


All times are GMT -4. The time now is 13:56.

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