All pastes #399061 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-03-17 18:30 UTC
rendered paste body
// Start MAIN
StartMain
 
 // load a model
 Node mesh = LoadMesh ("model.x");

 // rotate it
 SetRot (mesh, vector3df(15,15,15));
 
 // add a camera
 camera = CameraFPS;

 // position our model
 SetPos (mesh, vector3df(0,0,13));

 // now animate it
 PlayAnim (mesh);
 
 // song, anyone?
 PlaySound2D("asong.mp3",true); // true means streaming
 
 StartLoop
  DoUpdate
 }
}