Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Any idea why?

[DiscordArchive] Any idea why?

[DiscordArchive] Any idea why?

rektbyfaith
Administrator
0
06-01-2021, 12:25 AM
#1
Archived author: Deleted User • Posted: 2021-06-01T00:25:29.302000+00:00
Original source

Any idea why?
rektbyfaith
06-01-2021, 12:25 AM #1

Archived author: Deleted User • Posted: 2021-06-01T00:25:29.302000+00:00
Original source

Any idea why?

rektbyfaith
Administrator
0
06-01-2021, 12:27 AM
#2
Archived author: Deleted User • Posted: 2021-06-01T00:27:37.339000+00:00
Original source

It does work here tho:
```c++
// 56328 - Random Lightning Visual Effect
void ModDestHeight(SpellDestination& dest)
{
Position const offset = { 0.0f, 0.0f, -19.0f, 0.0f };
dest.RelocateOffset(offset);
}

void Register() override
{
OnDestinationTargetSelect += SpellDestinationTargetSelectFn(spell_random_lightning_visual_effect::ModDestHeight, EFFECT_0, TARGET_DEST_CASTER_RANDOM);
}
```
rektbyfaith
06-01-2021, 12:27 AM #2

Archived author: Deleted User • Posted: 2021-06-01T00:27:37.339000+00:00
Original source

It does work here tho:
```c++
// 56328 - Random Lightning Visual Effect
void ModDestHeight(SpellDestination& dest)
{
Position const offset = { 0.0f, 0.0f, -19.0f, 0.0f };
dest.RelocateOffset(offset);
}

void Register() override
{
OnDestinationTargetSelect += SpellDestinationTargetSelectFn(spell_random_lightning_visual_effect::ModDestHeight, EFFECT_0, TARGET_DEST_CASTER_RANDOM);
}
```

rektbyfaith
Administrator
0
06-01-2021, 12:35 AM
#3
Archived author: Deleted User • Posted: 2021-06-01T00:35:52.167000+00:00
Original source

Nvm, GetExplTargetDest() seems to do the trick
rektbyfaith
06-01-2021, 12:35 AM #3

Archived author: Deleted User • Posted: 2021-06-01T00:35:52.167000+00:00
Original source

Nvm, GetExplTargetDest() seems to do the trick

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