AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Model animations within a plugin (https://forums.alliedmods.net/showthread.php?t=19478)

Bruno 10-17-2005 18:19

Model animations within a plugin
 
I have a model for The Specialists that shows a player holding it in their hand in first person view. The model has several animations though. Is there anyway to make those animations work through a plugin?

XxAvalanchexX 10-17-2005 18:47

Set their EV_INT_weaponanim with entity_set_int.

Bruno 10-18-2005 21:10

I can put it in player's hand but I don't know how to pick the animation.

Zenith77 10-18-2005 21:14

Code:
entity_set_int(id, EV_INT_weaponanim, <squence> )

Example



Code:
entity_set_int(id, EV_INT_weaponanim, 3 )

Bruno 10-18-2005 21:43

Thanks man. Sorry Avalanche, I didn't know what you meant.

v3x 10-19-2005 20:30

Code:
set_animation(id, 3); // Replace 3 with the sequence # public set_animation(id, anim) {     entity_set_int(id, EV_INT_weaponanim, anim);     message_begin(MSG_ONE, SVC_WEAPONANIM, {0,0,0}, id);     write_byte(anim);     write_byte(entity_get_int(id, EV_INT_body));     message_end(); }

Bruno 10-20-2005 00:30

Thanks everyone. I'll test it out as soon as possible.


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

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