Costruttore
Character.Default Constructor
Sintassi
Character(location, rotation, skeletal_mesh_asset, collision_type = CollisionType.Auto, gravity_enabled = true, max_health = 100, death_sound = nanos-world::A_Male_01_Death, pain_sound = nanos-world::A_Male_01_Pain, spawn_mode = SpawnMode.Immediate)
Parametri
| Nome | Tipo | Predefinito | Descrizione |
|---|---|---|---|
location
|
Vector | — | — |
rotation
|
Rotator | — | — |
skeletal_mesh_asset
|
SkeletalMeshPath | — | — |
collision_type
facoltativo
|
CollisionType | CollisionType.Auto |
— |
gravity_enabled
facoltativo
|
boolean | true |
— |
max_health
facoltativo
|
integer | 100 |
Current / Max Health |
death_sound
facoltativo
|
SoundPath | nanos-world::A_Male_01_Death |
Played when Character dies |
pain_sound
facoltativo
|
SoundPath | nanos-world::A_Male_01_Pain |
Played when Character takes damage |
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 |