Every time I run this code I get the error "Supplied NxActorDesc is not valid. createActor returns NULL"
sync on : sync rate 30 : hide mouse : phy start
backdrop on : color backdrop rgb(150,150,0)
REM Miscellaneous
#constant temp 100
#constant temp2 101
REM Car creation
REM Car1 constants
#constant car1 1
#constant WheelFR 1
#constant WheelFL 2
#constant WheelRR 3
#constant WheelRL 4
REM Car body
make object box car1,5,5,15
color object car1,rgb(255,0,0)
set object cull car1,0
REM Wheel mesh setup
make object cylinder temp,5
make mesh from object temp2,temp
delete object temp
REM FR wheel
add limb car1,WheelFR,temp2
offset limb car1,WheelFR,3,-3,5
scale limb car1,WheelFR,60,25,60
rotate limb car1,WheelFR,0,0,90
color limb car1,WheelFR,rgb(0,0,0)
REM FL wheel
add limb car1,WheelFL,temp2
offset limb car1,WheelFL,-3,-3,5
scale limb car1,WheelFL,60,25,60
rotate limb car1,WheelFL,0,0,90
color limb car1,WheelFL,rgb(0,0,0)
REM RR wheel
add limb car1,WheelRR,temp2
offset limb car1,WheelRR,3,-3,-5
scale limb car1,WheelRR,60,26,60
rotate limb car1,WheelRR,0,0,90
color limb car1,WheelRR,rgb(0,0,0)
REM RL wheel
add limb car1,WheelRL,temp2
offset limb car1,WheelRL,-3,-3,-5
scale limb car1,WheelRL,60,25,60
rotate limb car1,WheelRL,0,0,90
color limb car1,WheelRL,rgb(0,0,0)
REM Car two set up
#constant car2 6
clone object car2,car1
position object car2,20,0,0
set object cull car2,0
color object car2,rgb(0,0,255)
color limb car2,WheelFR,rgb(0,0,0)
color limb car2,WheelFL,rgb(0,0,0)
color limb car2,WheelRR,rgb(0,0,0)
color limb car2,WheelRL,rgb(0,0,0)
phy make rigid body static mesh car1
phy make rigid body static mesh car2
REM Track pieces
REM Track ground
#constant trackGround 11
make object box trackGround,50,1,1000
position object trackGround,0,0,0
color object trackGround,rgb(255,255,255)
phy make rigid body static mesh trackGround
REM Middle wall
#constant midWall 12
make object box midWall,2,4,40
position object midWall,0,2,-480
phy make rigid body static mesh midWall
REM Left track wall
#constant leftWall 13
make object box leftWall,2,4,1000
position object leftWall,-24,2,0
phy make rigid body static mesh leftWall
REM Right track wall
#constant rightWall 14
make object box rightWall,2,4,1000
position object rightwall,24,2,0
phy make rigid body static mesh rightWall
REM Lightboard pole
#constant pole 15
make object cylinder pole,8
scale object pole,10,100,10
position object pole,0,8,-460.5
phy make rigid body static mesh pole
REM Countdown light board
#constant lightBoard 16
make object box lightBoard,4,8,1
position object lightBoard,0,15.5,-460.5
phy make rigid body static mesh lightBoard
REM Left sign pole
#constant leftPole 17
make object box leftPole,2,15,2
position object leftPole,-24,11.5,499
phy make rigid body static mesh leftPole
REM Right sign pole
#constant rightPole 18
make object box rightPole,2,15,2
position object rightPole,24,11.5,499
phy make rigid body static mesh rightPole
REM Sign crossbar
#constant crossbar 19
make object box crossbar,50,4,2
position object crossbar,0,21,499
phy make rigid body static mesh crossbar
#constant outsideGround 20
make object plain outsideGround,2000,2000
color object outsideGround,rgb(0,0,0)
rotate object outsideGround,270,0,0
phy make rigid body static mesh outsideGround
REM Back track wall
#constant backWall 21
make object box backWall,50,4.5,2
position object backWall,0,1.75,-501
phy make rigid body static mesh backWall
do
control camera using arrowkeys 0,10,5
phy update
sync
loop
Also, if you wanted the start of a drag race game, there is is.