• Visit Rebornbuddy
  • GameObjectManager

    Discussion in 'Community Developer Forum' started by user00719284, May 10, 2022.

    1. user00719284

      user00719284 New Member

      Joined:
      Aug 31, 2021
      Messages:
      13
      Likes Received:
      0
      Trophy Points:
      1
      If I want to ensure I get the most current location of an enemy NPC the moment it lands in the arena, should I be using the Clear() and Update() methods before fetching the NPC via GetObjectByNPCId?

      Noticing sometimes Location.X and Location.Z properties are returning the NPC's previous position before it vanished. The vanishing and re-appearing happens within a few seconds.
       
    2. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      4,953
      Likes Received:
      322
      Trophy Points:
      83
    3. mastahg

      mastahg Administrator Staff Member

      Joined:
      Feb 27, 2011
      Messages:
      4,953
      Likes Received:
      322
      Trophy Points:
      83
      Most properties are read dynamically, if the object changes during a transition or something it might be a totally different object that exists with the same npcid as two different objects at the same time.
       

    Share This Page