PDA

View Full Version : Setting a model animation.


purple nurple
04-09-2008, 20:42
I've looked around and found nothing on this, but how would i set a animation on a model like say new Float:origin[3]
entity_get_vector(player, EV_VEC_origin, origin)

new entity = create_entity("info_target")
entity_set_string(entity, EV_SZ_classname, "crab")
entity_set_model(entity, "models/headcrab.mdl")
entity_set_origin(entity, origin)
entity_set_int(entity, EV_INT_movetype, MOVETYPE_TOSS)How could i set its animation to the "angry"?

v3x
04-09-2008, 21:30
entity_set_int(entity, EV_INT_gaitsequence, SEQ_NUM);

Use that in a think forward for that entity, I believe.

You can get the sequence number using Jed's Half-Life Model viewer (Google it).

purple nurple
04-09-2008, 21:33
I know but on SEQ_NUM would i put SEQ_1?

v3x
04-09-2008, 21:33
No, it's just a number.
You can get the sequence number using Jed's Half-Life Model viewer (Google it).