Jump to content

How to spawn "named" entities, and the special pets


Recommended Posts

local pos = ThePlayer:GetPosition(); ThePlayer.components.petleash:SpawnPetAt(pos.x, pos.y, pos.z, "critter_glomling");

To spawn a critter at your position.

Options: "critter_lamb", "critter_puppy", "critter_kitten", "critter_dragonling", "critter_glomling".

c_find("critter_glomling").components.crittertraits.dominanttraitlocked = true

To make sure the trait will not change over time.

c_find("critter_glomling").components.crittertraits:SetDominantTrait("COMBAT")

To assign a dominant trait.

Options: "COMBAT", "WELLFED", "PLAYFUL", "CRAFTY".

ThePlayer.components.petleash:DespawnAllPets()

To despawn all your pets, to select another one and repeat the process.

5 hours ago, DarkXero said:

local pos = ThePlayer:GetPosition(); ThePlayer.components.petleash:SpawnPetAt(pos.x, pos.y, pos.z, "critter_glomling");

To spawn a critter at your position.

Options: "critter_lamb", "critter_puppy", "critter_kitten", "critter_dragonling", "critter_glomling".


c_find("critter_glomling").components.crittertraits.dominanttraitlocked = true

To make sure the trait will not change over time.


c_find("critter_glomling").components.crittertraits:SetDominantTrait("COMBAT")

To assign a dominant trait.

Options: "COMBAT", "WELLFED", "PLAYFUL", "CRAFTY".


ThePlayer.components.petleash:DespawnAllPets()

To despawn all your pets, to select another one and repeat the process.

Thaaaaank you :)

67595759.jpg

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...