Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] So in this case of creature and target, what class would target be?

[DiscordArchive] So in this case of creature and target, what class would target be?

[DiscordArchive] So in this case of creature and target, what class would target be?

Pages (4): Previous 1 2 3 4
rektbyfaith
Administrator
0
10-16-2023, 09:33 AM
#31
Archived author: Honey • Posted: 2023-10-16T09:33:36.730000+00:00
Original source

You can always use
```lua
if attacker:IsPlayer())
```
And send the message only if it's a player. So it doesn't error out.
rektbyfaith
10-16-2023, 09:33 AM #31

Archived author: Honey • Posted: 2023-10-16T09:33:36.730000+00:00
Original source

You can always use
```lua
if attacker:IsPlayer())
```
And send the message only if it's a player. So it doesn't error out.

rektbyfaith
Administrator
0
10-16-2023, 09:34 AM
#32
Archived author: Honey • Posted: 2023-10-16T09:34:25.178000+00:00
Original source

Which reminds me I wanted to add more such helpers for creatures and pets, but never got around doing it
rektbyfaith
10-16-2023, 09:34 AM #32

Archived author: Honey • Posted: 2023-10-16T09:34:25.178000+00:00
Original source

Which reminds me I wanted to add more such helpers for creatures and pets, but never got around doing it

rektbyfaith
Administrator
0
10-16-2023, 09:38 AM
#33
Archived author: Orion • Posted: 2023-10-16T09:38:41.913000+00:00
Original source

Oh, I see. Damn feels like I'm learning some alternate universe version of javascript XD
rektbyfaith
10-16-2023, 09:38 AM #33

Archived author: Orion • Posted: 2023-10-16T09:38:41.913000+00:00
Original source

Oh, I see. Damn feels like I'm learning some alternate universe version of javascript XD

rektbyfaith
Administrator
0
10-16-2023, 09:41 AM
#34
Archived author: Rymercyble • Posted: 2023-10-16T09:41:06.102000+00:00
Original source

actually lua is older than js so
rektbyfaith
10-16-2023, 09:41 AM #34

Archived author: Rymercyble • Posted: 2023-10-16T09:41:06.102000+00:00
Original source

actually lua is older than js so

rektbyfaith
Administrator
0
10-16-2023, 09:45 AM
#35
Archived author: Orion • Posted: 2023-10-16T09:45:23.473000+00:00
Original source

ohno.jpg
rektbyfaith
10-16-2023, 09:45 AM #35

Archived author: Orion • Posted: 2023-10-16T09:45:23.473000+00:00
Original source

ohno.jpg

rektbyfaith
Administrator
0
10-16-2023, 10:48 AM
#36
Archived author: Foe • Posted: 2023-10-16T10:48:49.538000+00:00
Original source

Just use the To* methods
rektbyfaith
10-16-2023, 10:48 AM #36

Archived author: Foe • Posted: 2023-10-16T10:48:49.538000+00:00
Original source

Just use the To* methods

rektbyfaith
Administrator
0
10-16-2023, 10:49 AM
#37
Archived author: Foe • Posted: 2023-10-16T10:49:11.909000+00:00
Original source

If attacker:ToPlayer() then
rektbyfaith
10-16-2023, 10:49 AM #37

Archived author: Foe • Posted: 2023-10-16T10:49:11.909000+00:00
Original source

If attacker:ToPlayer() then

rektbyfaith
Administrator
0
10-16-2023, 10:53 AM
#38
Archived author: Orion • Posted: 2023-10-16T10:53:11.299000+00:00
Original source

I see. Thanks!
rektbyfaith
10-16-2023, 10:53 AM #38

Archived author: Orion • Posted: 2023-10-16T10:53:11.299000+00:00
Original source

I see. Thanks!

rektbyfaith
Administrator
0
10-16-2023, 10:57 AM
#39
Archived author: Honey • Posted: 2023-10-16T10:57:45.986000+00:00
Original source

Thanks for the reminder, i know these. You showed me the other day. I just hate to read that syntax.
rektbyfaith
10-16-2023, 10:57 AM #39

Archived author: Honey • Posted: 2023-10-16T10:57:45.986000+00:00
Original source

Thanks for the reminder, i know these. You showed me the other day. I just hate to read that syntax.

rektbyfaith
Administrator
0
10-16-2023, 12:49 PM
#40
Archived author: Foe • Posted: 2023-10-16T12:49:36.880000+00:00
Original source

That's because it actively tries to convert the object to the requested object, it's not a boolean return
rektbyfaith
10-16-2023, 12:49 PM #40

Archived author: Foe • Posted: 2023-10-16T12:49:36.880000+00:00
Original source

That's because it actively tries to convert the object to the requested object, it's not a boolean return

Pages (4): Previous 1 2 3 4
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)