Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] Hi guys, may i know what is the function to spawn a gameobject after creature death , and when the c

rektbyfaith
Administrator
0
10-11-2024, 10:17 PM
#1
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) ?
rektbyfaith
10-11-2024, 10:17 PM #1

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) ?

rektbyfaith
Administrator
0
10-11-2024, 10:25 PM
#2
Archived author: Aldori • Posted: 2024-10-11T22:25:00.013000+00:00
Original source

Look up RegisterCreatureEvent in the eluna api
rektbyfaith
10-11-2024, 10:25 PM #2

Archived author: Aldori • Posted: 2024-10-11T22:25:00.013000+00:00
Original source

Look up RegisterCreatureEvent in the eluna api

rektbyfaith
Administrator
0
10-11-2024, 10:34 PM
#3
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
rektbyfaith
10-11-2024, 10:34 PM #3

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

rektbyfaith
Administrator
0
10-11-2024, 10:34 PM
#4
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
rektbyfaith
10-11-2024, 10:34 PM #4

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

rektbyfaith
Administrator
0
10-11-2024, 11:41 PM
#5
Archived author: TheHideout • Posted: 2024-10-11T23:41:53.032000+00:00
Original source

rektbyfaith
10-11-2024, 11:41 PM #5

Archived author: TheHideout • Posted: 2024-10-11T23:41:53.032000+00:00
Original source

rektbyfaith
Administrator
0
10-11-2024, 11:41 PM
#6
Archived author: TheHideout • Posted: 2024-10-11T23:41:53.419000+00:00
Original source

Massive upgrade today. Looking better already!
rektbyfaith
10-11-2024, 11:41 PM #6

Archived author: TheHideout • Posted: 2024-10-11T23:41:53.419000+00:00
Original source

Massive upgrade today. Looking better already!

rektbyfaith
Administrator
0
10-12-2024, 03:09 AM
#7
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
rektbyfaith
10-12-2024, 03:09 AM #7

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

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)