Skip to main content

RagdollSpawner

class ThaumielMapEditor.API.Blocks.ServerObjects

Overview​

Properties​

NameTypeAccessDescription
BaseRagdollgetGets or sets the base LabApi.Features.Wrappers.Ragdoll instance associated with this spawner.
DeathReasonstringget setGets or sets the death reason displayed on the ragdoll.
DollNamestringget setGets or sets the name displayed on the ragdoll.
ObjectTypeObjectTypegetGets or sets the type of the object represented by this instance.
RoleTypeRoleTypeIdget setGets or sets the PlayerRoles.RoleTypeId used to determine the ragdoll's appearance.
SpawnChancefloatget setGets or sets the chance (0-100) that this ragdoll will spawn.

Methods​

SignatureReturnsDescription
SpawnObject(SchematicData, SerializableObject)voidSpawns 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​

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​

NameTypeDescription
schematicSchematicData
serializableSerializableObject