I have a problem with collision in my .dbo from Mapscape that I have made and I have Sparky's collision plugin...
How can I access control over the objects that I made in Mapscape?
Im currently doing a first player view.. I have a camera following an object which is block to emulate a person later and the camera is propped to the object position y+80 like a head...
Before_Loop:
load object "NorthBridge.dbo",1,3
make object box 4,10,120,10
sc_setupcomplexobject 1,1,2: rem obj#1 is the apartment building I loaded
sc_setupobject 4,0,2: rem obj#4 is the object box for the collision
Inside_Loop:
obx#=object position x(4)
oby#=object position y(4)+80
obz#=object position z(4)
position camera obx#,oby#,obz#
rotate camera cxrot#,cyrot#,0
yrotate object 4,cyrot#
mx#=mousemovex()
my#=mousemovey()
cxrot#=cxrot#+my#*0.1
cyrot#=cyrot#+mx#*0.1
OldX#=object position X(4)
OldY#=object position Y(4)
OldZ#=object position Z(4)
if keystate(17)=1
move object 4,2
endif
Hit=sc_sphereslidegroup(1,OldX#,OldY#,OldZ#,obx#,oby#,obz#,10,0)
colx#=sc_getcollisionslideX()
coly#=sc_getcollisionslideY()
colz#=sc_getcollisionslideZ()
if Hit
position object 4, colX#,colY#,colZ#
endif
I cant seem to get it working correctly.. How would I connect to the limbs in the object? To make the camera go up stairs? It seems on the third floor the collision system starts but then I want it to go rotate certain limbs like doors to open... Help!!??!
- Infinity is Simplicity -