stk-code_catmod/data/scripts/greenvalley/update.as
2014-07-03 14:01:58 +05:30

13 lines
311 B
ActionScript

void onUpdate()
{
TrackObject @t_obj = getTrackObject("anim_sheep2.b3d");
Mesh @sheepMesh = t_obj.getMesh();
Vec3 newloc = Vec3(2,-2,-2);
sheepMesh.move(newloc);
if (sheepMesh.getCurrentFrame()==2){
sheepMesh.setLoop(8,48);
sheepMesh.setCurrentFrame(9);
}
}