Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Hello i tried to create my own boss. he should spawn a gameobject at the beginning of the fight. i

[DiscordArchive] Hello i tried to create my own boss. he should spawn a gameobject at the beginning of the fight. i

[DiscordArchive] Hello i tried to create my own boss. he should spawn a gameobject at the beginning of the fight. i

rektbyfaith
Administrator
0
03-17-2022, 05:55 PM
#1
Archived author: PapierDragon • Posted: 2022-03-17T17:55:03.041000+00:00
Original source

Hello i tried to create my own boss. he should spawn a gameobject at the beginning of the fight. i used this code.


void EnterCombat(Unit* who)
{

me->SummonGameObject(999000, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, 0, 0, 0, 0, 1200);

}


at the end of the fight no matter how it ends, exactly this object and only this object should be removed. but unfortunately I do not know how can someone help me?
rektbyfaith
03-17-2022, 05:55 PM #1

Archived author: PapierDragon • Posted: 2022-03-17T17:55:03.041000+00:00
Original source

Hello i tried to create my own boss. he should spawn a gameobject at the beginning of the fight. i used this code.


void EnterCombat(Unit* who)
{

me->SummonGameObject(999000, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), 0, 0, 0, 0, 0, 1200);

}


at the end of the fight no matter how it ends, exactly this object and only this object should be removed. but unfortunately I do not know how can someone help me?

rektbyfaith
Administrator
0
03-17-2022, 05:58 PM
#2
Archived author: Honey • Posted: 2022-03-17T17:58:43.464000+00:00
Original source

That's a good question for Stackoverflow.
rektbyfaith
03-17-2022, 05:58 PM #2

Archived author: Honey • Posted: 2022-03-17T17:58:43.464000+00:00
Original source

That's a good question for Stackoverflow.

rektbyfaith
Administrator
0
03-17-2022, 06:20 PM
#3
Archived author: Linguster • Posted: 2022-03-17T18:20:25.073000+00:00
Original source

anyone interested in helping me compile a source on a linux server? I got 15$ for ya if it helps, just dm me
rektbyfaith
03-17-2022, 06:20 PM #3

Archived author: Linguster • Posted: 2022-03-17T18:20:25.073000+00:00
Original source

anyone interested in helping me compile a source on a linux server? I got 15$ for ya if it helps, just dm me

rektbyfaith
Administrator
0
03-17-2022, 07:47 PM
#4
Archived author: Kito • Posted: 2022-03-17T19:47:42.489000+00:00
Original source

In the JustDied section you can look for this object and despawn it... Or maybe SummonGameObject takes an argument to specify that it despawns on creature death In SAI there is the option for things to despawn when the actor dies, maybe u can look into that source code part too
rektbyfaith
03-17-2022, 07:47 PM #4

Archived author: Kito • Posted: 2022-03-17T19:47:42.489000+00:00
Original source

In the JustDied section you can look for this object and despawn it... Or maybe SummonGameObject takes an argument to specify that it despawns on creature death In SAI there is the option for things to despawn when the actor dies, maybe u can look into that source code part too

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