Costruttore
VehicleWheeled.Default Constructor
Sintassi
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)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
location
|
Vector | — | — |
rotation
|
Rotator | — | — |
asset
|
SkeletalMeshPath | — | — |
collision_type
facoltativo
|
CollisionType | CollisionType.Auto |
— |
gravity_enabled
facoltativo
|
boolean | true |
— |
auto_unflip
facoltativo
|
boolean | true |
Auto rotates the vehicle if flipped |
engine_sound
facoltativo
|
SoundPath | nanos-world::A_Vehicle_Engine_01 |
— |
horn_sound
facoltativo
|
SoundPath | nanos-world::A_Vehicle_Horn_Toyota |
— |
brake_sound
facoltativo
|
SoundPath | nanos-world::A_Vehicle_Brake |
— |
engine_start_sound
facoltativo
|
SoundPath | nanos-world::A_Car_Engine_Start |
— |
vehicle_door_sound
facoltativo
|
SoundPath | nanos-world::A_Vehicle_Door |
— |
auto_start_engine
facoltativo
|
boolean | true |
— |
custom_animation_blueprint
facoltativo
|
BlueprintPath | "" |
— |
spawn_mode
facoltativo
|
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 |