|
Wiggy Undertone
Registered User
Join date: 4 Jun 2006
Posts: 8
|
08-23-2006 14:24
I'm new to scripting, and am currently working on a rickshaw. The rickshaw works well on ground, but when used on a prim roadway it will not go forward. It will reverse and turn, but not go forward. I'm using a slightly modified version of the dune buggy's vehicle script (the one that's included in the inventory). I can't post the script right now as the grid is down. Any ideas why a vehicle will work on the ground but not on a prim?
Thanks in advance.
|
|
Wiggy Undertone
Registered User
Join date: 4 Jun 2006
Posts: 8
|
08-23-2006 16:16
Ack, nevermind. I see it now  The original script from Kart 1.0 contains:
if(level & CONTROL_FWD) { vector pos = llGetPos(); if(( pos.z - llGround(ZERO_VECTOR) ) < 2.0) { llSetVehicleVectorParam(VEHICLE_LINEAR_MOTOR_DIRECTION, <50,0,0>); } }
Once I got rid of the test for altitude above ground, it works fine.
|
|
Seagel Neville
Far East User
Join date: 2 Jan 2005
Posts: 1,476
|
08-24-2006 07:29
From: Wiggy Undertone if(( pos.z - llGround(ZERO_VECTOR) ) < 2.0) So how much height is the road?
_____________________
 Seagel Neville 
|