RagdollSpawner
ThaumielMapEditor.API.Blocks.ServerObjects
Overviewβ
Propertiesβ
| Name | Type | Access | Description |
|---|---|---|---|
Base | Ragdoll | get | Gets or sets the base LabApi.Features.Wrappers.Ragdoll instance associated with this spawner. |
DeathReason | string | get set | Gets or sets the death reason displayed on the ragdoll. |
DollName | string | get set | Gets or sets the name displayed on the ragdoll. |
ObjectType | ObjectType | get | Gets or sets the type of the object represented by this instance. |
RoleType | RoleTypeId | get set | Gets or sets the PlayerRoles.RoleTypeId used to determine the ragdoll's appearance. |
SpawnChance | float | get set | Gets or sets the chance (0-100) that this ragdoll will spawn. |
Methodsβ
| Signature | Returns | Description |
|---|---|---|
SpawnObject(SchematicData, SerializableObject) | void | Spawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server⦠|
Propertiesβ
Baseβ
Type: RagdollβAccess: get
Gets or sets the base LabApi.Features.Wrappers.Ragdoll instance associated with this spawner.
DeathReasonβ
Type: stringβAccess: get set
Gets or sets the death reason displayed on the ragdoll.
DollNameβ
Type: stringβAccess: get set
Gets or sets the name displayed on the ragdoll.
ObjectTypeβ
Type: ObjectTypeβAccess: get
Gets or sets the type of the object represented by this instance.
RoleTypeβ
Type: RoleTypeIdβAccess: get set
Gets or sets the PlayerRoles.RoleTypeId used to determine the ragdoll's appearance.
SpawnChanceβ
Type: floatβAccess: get set
Gets or sets the chance (0-100) that this ragdoll will spawn.
Methodsβ
SpawnObjectβ
public void SpawnObject(
SchematicData schematic,
SerializableObject serializable
)
Spawns the specified ThaumielMapEditor.API.Blocks.ServerObject into the server and adds it to the provided ThaumielMapEditor.API.Data.SchematicData's ThaumielMapEditor.API.Data.SchematicData.SpawnedServerObjects list.
Parametersβ
| Name | Type | Description |
|---|---|---|
schematic | SchematicData | |
serializable | SerializableObject |