How

what is the code to make it so i can load and control a egg model on flat terrian. i got the environment to load.

I don’t know what do you mean exactly.
To control a model you have to ways:

Load the model and move it:

model= loader.loadModel('model.egg')
model.reparentTo( render ) #or a other node under the render node
model.setPos( x, y, z )
model.setHpr( h, p, r ) 

Load the model as an Actor and move it:

model= Actor( 'model.egg', { 'anim1' : 'anim1.egg', 'anim2' : 'anim2.egg',...
'animn' : 'animn.egg' } )
model.reparentTo( render )
model.play( 'anim1' )
model.loop( 'anim2' )
model.setPos( x, y, z )
model.setHpr( h, p, r ) 

Or do you mean something different?

Martin