Ok, i've created a terrain in magicworld, which can be accessed here
http://www.hot.ee/yosepp/rpg.zip
and i'm trying to create a code, which prevents me from going throught the matrix. The code is here :
rem include MagicWorld's load function and load the world
#include "magicload1-1.dba"
MagicLoad("rpg",1,1,1)
hide mouse
rem initialize sync
sync on
sync rate 100
position camera 2000,0,1000
rem main loop and mouselook
camx#=CAMERA POSITION X()
camz#=CAMERA POSITION z()
GH#=Get Ground Height(1,CamX#,CamZ#)-1.0
do
rem mouselook code'
position mouse 320,240
CX#=Camera Angle X(): CY#=Camera Angle Y(): CZ#=Camera Angle Z()
CX#=Wrapvalue(CX#-mousemovey()): CY#=Wrapvalue(CY#+mousemovex())
Rotate Camera CX#,CY#,CZ#
Rem Use left mouse button to move forwards
If MouseClick()=1
GH#=Get Ground Height(1,Camera Position x(), Camera Position z() )
Move Camera 10
If camera position y()
fire, fire, fire
-"Cornholio" alias Beavis