depends on what you want the animation to do
if you just want for the npc to go into the pose all that code is unnecessary
something like this would work fine
init\std\template\char\brain\code
twerk0_state.dat
Code:
<twerk0_state>
loc.res = pose_state();
[loc.res] return;
case (state.dyn.me.do.state2)
{
[START1]
{
loc.sp.pose_type = POSE;
loc.sp.pose_id = 0;
SetPose(loc.sp);
state.dyn.me.do.state2 = NOTHING;
}
</twerk0_state>
twerk0_ref.dat
Code:
stop.you.set =
{
loc.ss.state = MOVE0;
state.dyn.me.do.state2 = FINISH;
loc.ss.state3 = STAND;
set_state(loc.ss);
}
stop.you.if = stop.you.set;
with it referenced in the run and ref
otherwise if you want other things to happen while the pose is going on like in the other poses then you would need to edit that code