Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] SMART_TARGET_CREATURE_GUID and SMART_TARGET_CLOSEST_CREATURE comparisons. Which one is recommended

[DiscordArchive] SMART_TARGET_CREATURE_GUID and SMART_TARGET_CLOSEST_CREATURE comparisons. Which one is recommended

[DiscordArchive] SMART_TARGET_CREATURE_GUID and SMART_TARGET_CLOSEST_CREATURE comparisons. Which one is recommended

rektbyfaith
Administrator
0
05-13-2024, 04:09 PM
#1
Archived author: 老爷爷 • Posted: 2024-05-13T16:09:20.811000+00:00
Original source

SMART_TARGET_CREATURE_GUID and SMART_TARGET_CLOSEST_CREATURE comparisons. Which one is recommended for frequent use?
rektbyfaith
05-13-2024, 04:09 PM #1

Archived author: 老爷爷 • Posted: 2024-05-13T16:09:20.811000+00:00
Original source

SMART_TARGET_CREATURE_GUID and SMART_TARGET_CLOSEST_CREATURE comparisons. Which one is recommended for frequent use?

rektbyfaith
Administrator
0
05-14-2024, 05:06 AM
#2
Archived author: sudlud • Posted: 2024-05-14T05:06:42.740000+00:00
Original source

Both should do the job most likely, if there’s only one creature of a type in range I would probably prefer _closest_creature, then there’s no risk that it breaks if the guid should change some time later maybe
rektbyfaith
05-14-2024, 05:06 AM #2

Archived author: sudlud • Posted: 2024-05-14T05:06:42.740000+00:00
Original source

Both should do the job most likely, if there’s only one creature of a type in range I would probably prefer _closest_creature, then there’s no risk that it breaks if the guid should change some time later maybe

Recently Browsing
 
Recently Browsing