Difference between revisions of "LlSetVehicleType"

From Second Life Wiki
Jump to navigation Jump to search
m (Replaced old <LSL> block with <source lang="lsl2">)
 
(10 intermediate revisions by 5 users not shown)
Line 7: Line 7:
|return_text
|return_text
|spec
|spec
|caveats
|caveats=Scripted Vehicles can have a maximum Physics weight of 32.0 Above that the function will fail with a warning on the Debug Channel.
|constants={{{!}} {{Prettytable}}
|constants={{LSL Constants/Vehicle Types}}
!Flags
|examples=
!Description
<source lang="lsl2">llSetVehicleType(VEHICLE_TYPE_BALLOON);</source>
!Value
{{!}}-
{{!}}{{LSLG|VEHICLE_TYPE_NONE}}
{{!}}
{{!}}0
{{!}}-
{{!}}{{LSLG|VEHICLE_TYPE_SLED}}
{{!}}Simple vehicle that bumps along the ground, and likes to move along it's local x-axis.
{{!}}1
{{!}}-
{{!}}{{LSLG|VEHICLE_TYPE_CAR}}
{{!}}Vehicle that bounces along the ground but needs the motors to be driven from external controls or {{LSLG|timer}} events.
{{!}}2
{{!}}-
{{!}}{{LSLG|VEHICLE_TYPE_BOAT}}
{{!}}Hovers over water with lots of friction and some angular deflection.
{{!}}3
{{!}}-
{{!}}{{LSLG|VEHICLE_TYPE_AIRPLANE}}
{{!}}Uses linear deflection for lift, no hover, and banking to turn.
{{!}}4
{{!}}-
{{!}}{{LSLG|VEHICLE_TYPE_BALLOON}}
{{!}}Hover, and friction, but no deflection.
{{!}}5
{{!}}}
|examples
|helpers
|helpers
|also_functions
|also_functions
|also_tests
|also_tests
|also_events
|also_events
|also_articles
|also_articles=The [[Linden Vehicle Tutorial]]
|notes
|notes
|cat1=Vehicle
|cat1=Vehicle

Latest revision as of 12:56, 22 January 2015

Summary

Function: llSetVehicleType( integer type );

Sets the vehicle type to one of the default types.

• integer type

Flags Description
VEHICLE_TYPE_NONE 0 Turns off vehicle support
VEHICLE_TYPE_SLED 1 Simple vehicle that bumps along the ground, and likes to move along its local x-axis
VEHICLE_TYPE_CAR 2 Vehicle that bounces along the ground but needs the motors to be driven from external controls or timer events
VEHICLE_TYPE_BOAT 3 Hovers over water with lots of friction and some angular deflection
VEHICLE_TYPE_AIRPLANE 4 Uses linear deflection for lift, no hover, and banking to turn
VEHICLE_TYPE_BALLOON 5 Hover, and friction, but no deflection

Caveats

Scripted Vehicles can have a maximum Physics weight of 32.0 Above that the function will fail with a warning on the Debug Channel.

All Issues ~ Search JIRA for related Bugs

Examples

llSetVehicleType(VEHICLE_TYPE_BALLOON);

See Also

Deep Notes

Search JIRA for related Issues

Signature

function void llSetVehicleType( integer type );