[DiscordArchive] Hi guys, may i know what is the function to spawn a gameobject after creature death , and when the c
[DiscordArchive] Hi guys, may i know what is the function to spawn a gameobject after creature death , and when the c
Archived author: cyberpro98 • Posted: 2024-10-11T22:17:58.043000+00:00
Original source
Hi guys, may i know what is the function to spawn a gameobject after creature death , and when the creature respawns the gameobject should be gone (disappear) ?
Archived author: Aldori • Posted: 2024-10-11T22:25:00.013000+00:00
Original source
Look up RegisterCreatureEvent in the eluna api
Archived author: cyberpro98 • Posted: 2024-10-11T22:34:02.785000+00:00
Original source
I did it somehow using partly chatgpt but now i cannot figure it out that when i do on creature .respawn the gameobject doesn´t disappear
Archived author: cyberpro98 • Posted: 2024-10-11T22:34:06.471000+00:00
Original source
local function OnDied(event, creature, killer)
creature:SendUnitYell("My task has been done, you can fly again!", 0)
creature:RemoveEvents()
-- Attempt to summon the GameObject
spawnedGameObject = creature:SpawnGameObject(GAMEOBJECT_ID, GO_X, GO_Y, GO_Z, GO_O, MAP_ID, 60000)
if spawnedGameObject then
creature:SendUnitYell("GameObject successfully summoned!", 0)
else
creature:SendUnitYell("Failed to summon GameObject.", 0)
end
end
local function OnRespawn(event, creature)
-- Remove the GameObject when the boss respawns
if spawnedGameObject then
spawnedGameObject:RemoveFromWorld()
spawnedGameObject = nil
end
end
Archived author: TheHideout • Posted: 2024-10-11T23:41:53.032000+00:00
Original source
Archived author: TheHideout • Posted: 2024-10-11T23:41:53.419000+00:00
Original source
Massive upgrade today. Looking better already!
Archived author: Anchy • Posted: 2024-10-12T03:09:14.331000+00:00
Original source
add a little checkbox to enable/disable the players current equipment on the dressup model so people can color match