Aller au contenu

Photo

Get Creatures In Area


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
SynysterLyfe

SynysterLyfe
  • Members
  • 32 messages
Is there a nice way to get an array containing all of the Creatures in an area? Because the only solution I can think of is using GetObjectsInArea and walking through that array picking out anything of OBJECT_TYPE_CREATURE. My problem with this is that GetObjectInArea returns all objects of every type, which could make the array quite large for some areas depending on how many placables, items, etc. I decide to put in it.

Any ideas?

#2
TimelordDC

TimelordDC
  • Members
  • 923 messages
Try GetNearestObject

#3
SynysterLyfe

SynysterLyfe
  • Members
  • 32 messages
GetNearestObject could work! I forgot that it could filter by Object Type. Thanks TimelordDC :D