Hi guys, so far what i have works fine but i need the object on the ground.. i tried decreasing the object y position which works but i cant tell it to stop decreasing when it hits the floor so sometimes it goes through the floor or has difficulty climbing steps.. this is probably simple but i dont have enough info on the commands. All done in exclusive mode.
sync on
backdrop off
hide mouse
set text size 15
load bsp "level.pk3","q3dm7.bsp"
set camera range 0.1,5000
autocam off
make object box 1,1,1,1
hide object 1
position object 1,60,0,-40
position camera 60,1,-40
set camera to object orientation 1
set bsp object collision 1,1,1,0
do
text 0,0,"Fps"
text 50,0,str$(Screen Fps())
yrotate object 1,object angle y(1)+(mousemovex()/5.0)
yrotate camera object angle y(1)
xrotate camera camera angle x()+(mousemovey()/5.0)
if upkey()=1
move object 1,0.1
endif
if downkey()=1
move object 1,-0.1
endif
if leftkey()=1
move object left 1,0.1
endif
if rightkey()=1
move object right 1,0.1
endif
position camera object position x(1),object position y(1),object position z(1)
sync
loop
thanx
| P4 2.4(533) | 512DDR(333) | GF4Ti4200 64MB | WinXP Home Sp1 | Cup of CoffeE |