Difference between revisions of "LlSetVehicleType"
Jump to navigation
Jump to search
All Issues ~ Search JIRA for related Bugs
Lady Sumoku (talk | contribs) m (Replaced old <LSL> block with <source lang="lsl2">) |
|||
(14 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{LSL_Function | ||
|func_id=232|func_sleep=0.0|func_energy=10.0 | |||
|func=llSetVehicleType | |||
|p1_type=integer|p1_name=type | |||
|func_footnote | |||
|func_desc=Sets the vehicle type to one of the default types. | |||
|return_text | |||
|spec | |||
|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={{LSL Constants/Vehicle Types}} | |||
|examples= | |||
<source lang="lsl2">llSetVehicleType(VEHICLE_TYPE_BALLOON);</source> | |||
|helpers | |||
|also_functions | |||
|also_tests | |||
|also_events | |||
|also_articles=The [[Linden Vehicle Tutorial]] | |||
|notes | |||
|cat1=Vehicle | |||
|cat2 | |||
|cat3 | |||
|cat4 | |||
}} |
Latest revision as of 12:56, 22 January 2015
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: llSetVehicleType( integer type );232 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
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.
Examples
llSetVehicleType(VEHICLE_TYPE_BALLOON);