AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Set animation for v_ model. (https://forums.alliedmods.net/showthread.php?t=210343)

Kz1.0 03-09-2013 12:06

Set animation for v_ model.
 
How to make v_ model play a animation (sequence) ?

Bos93 03-09-2013 12:51

Re: Set animation for v_ model.
 
PHP Code:

new iAnim 6;

ExecuteHamHam_CS_Weapon_SendWeaponAnimpEntityiAnim); 


Arkshine 03-09-2013 15:46

Re: Set animation for v_ model.
 
Supposing he has the unofficial version.

avril-lavigne 03-09-2013 16:09

Re: Set animation for v_ model.
 
PHP Code:

stock UTIL_PlayWeaponAnimation(const Player, const Sequence)
{
       
set_pev(Playerpev_weaponanimSequence
       
message_begin(MSG_ONE_UNRELIABLESVC_WEAPONANIM, .player Player)
       
write_byte(Sequence)
       
write_byte(pev(Playerpev_body))
       
message_end()



Arkshine 03-09-2013 16:11

Re: Set animation for v_ model.
 
It's not entirely correct. the second param is the weapon body, not player.

Kz1.0 03-10-2013 07:54

Re: Set animation for v_ model.
 
So, how to do it ?

Bos93 03-10-2013 08:26

Re: Set animation for v_ model.
 
You do not see my post?

Kz1.0 03-10-2013 09:37

Re: Set animation for v_ model.
 
Quote:

Originally Posted by Bos93 (Post 1910029)
You do not see my post?

so it will do the 6th anim of the model ?


All times are GMT -4. The time now is 21:39.

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