Jump to content

what is wrong with this part of my car script


Jonny Kyrie
 Share

You are about to reply to a thread that has been inactive for 4327 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

list        ForwardPowerGears = [2, 5, 100];float       ReversePower = -2;float       TurnPower = 2;float       TurnSpeedAdjust = 0.0;string      SitText = "PWN";string      NonOwnerMessage = "Permissions not granted";string      IdleCommand = "Ignition";string      StopCommmand = "Killswitch";vector      SitTarget = <0,0,0>;vector      SitRotation = <0,0,0>;// driving animation if i chose to in the futurekey         Owner;string      OwnerName;float       ForwardPower;integer     NumGears;integer     Gear;integer     NewSound;string      Sound;integer     CurDir;integer     LastDir;integer     Forward;vector      SpeedVec;vector      Linear;vector      Angular;integer     Active;key         sitting;integer     Moving;string      SimName;        llSetVehicleType(VEHICLE_TYPE_CAR);          llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 0.80);        llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 0.10);                llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0.2);        llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 0.10);                llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_TIMESCALE, 1.0);        llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 0.1);                llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_TIMESCALE, 0.1);        llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 0.1);                llSetVehicleVectorParam(VEHICLE_LINEAR_FRICTION_TIMESCALE, <1000.0, 10.0, 1000.0> );        llSetVehicleVectorParam(VEHICLE_ANGULAR_FRICTION_TIMESCALE, <500.0, 500.0, 1000.0> );                llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.50);        llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 0.50);        llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 0.50);

 that didnt work either its still saying 36,25 syntax error

Link to comment
Share on other sites

That's just part of the script, of course.

All the commands -- llSetVehicleWhatever -- need to be in an event somewhere, not floating round on their own.

This compiles OK:

default{	state_entry()	{			llSetVehicleType(VEHICLE_TYPE_CAR);		llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_EFFICIENCY, 0.80);		llSetVehicleFloatParam(VEHICLE_LINEAR_DEFLECTION_TIMESCALE, 0.10);		llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_EFFICIENCY, 0.2);		llSetVehicleFloatParam(VEHICLE_ANGULAR_DEFLECTION_TIMESCALE, 0.10);		llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_TIMESCALE, 1.0);		llSetVehicleFloatParam(VEHICLE_LINEAR_MOTOR_DECAY_TIMESCALE, 0.1);		llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_TIMESCALE, 0.1);		llSetVehicleFloatParam(VEHICLE_ANGULAR_MOTOR_DECAY_TIMESCALE, 0.1);		llSetVehicleVectorParam(VEHICLE_LINEAR_FRICTION_TIMESCALE, <1000.0, 10.0, 1000.0> );		llSetVehicleVectorParam(VEHICLE_ANGULAR_FRICTION_TIMESCALE, <500.0, 500.0, 1000.0> );		llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_EFFICIENCY, 0.50);		llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 0.50);		llSetVehicleFloatParam(VEHICLE_VERTICAL_ATTRACTION_TIMESCALE, 0.50);	}}

 NB -- vector SitTarget =<0,0,0>; won't work.   The vector has to have a value other than ZERO_VECTOR.   Using ZERO_VECTOR in a sit target clears the sit target, thus causing llAvatarOnSitTarget() to return NULL_KEY (since there's no sit target, whether or not there's an avatar sitting on the object).   Use <0.0,0.0,0.01>.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4327 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...