Constructor
VehicleWheeled.Default Constructor
Syntax
VehicleWheeled(location, rotation, asset, collision_type = CollisionType.Auto, gravity_enabled = true, auto_unflip = true, engine_sound = nanos-world::A_Vehicle_Engine_01, horn_sound = nanos-world::A_Vehicle_Horn_Toyota, brake_sound = nanos-world::A_Vehicle_Brake, engine_start_sound = nanos-world::A_Car_Engine_Start, vehicle_door_sound = nanos-world::A_Vehicle_Door, auto_start_engine = true, custom_animation_blueprint = "", spawn_mode = SpawnMode.Immediate)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
location
|
Vector | — | — |
rotation
|
Rotator | — | — |
asset
|
SkeletalMeshPath | — | — |
collision_type
optional
|
CollisionType | CollisionType.Auto |
— |
gravity_enabled
optional
|
boolean | true |
— |
auto_unflip
optional
|
boolean | true |
Auto rotates the vehicle if flipped |
engine_sound
optional
|
SoundPath | nanos-world::A_Vehicle_Engine_01 |
— |
horn_sound
optional
|
SoundPath | nanos-world::A_Vehicle_Horn_Toyota |
— |
brake_sound
optional
|
SoundPath | nanos-world::A_Vehicle_Brake |
— |
engine_start_sound
optional
|
SoundPath | nanos-world::A_Car_Engine_Start |
— |
vehicle_door_sound
optional
|
SoundPath | nanos-world::A_Vehicle_Door |
— |
auto_start_engine
optional
|
boolean | true |
— |
custom_animation_blueprint
optional
|
BlueprintPath | "" |
— |
spawn_mode
optional
|
SpawnMode | SpawnMode.Immediate |
Pass <code>SpawnMode.AfterConstructor</code> or <code>SpawnMode.Manual</code> to avoid immediately sending the entity to clients and improve performance when you want to configure it by setting several configs. Must call <code>FinishSpawn()</code> after all |