Skip to content

GetFirstObjectInArea can only mean whole area?

I thought that you could put a trigger as the object in GetFirstObjectInArea and it would treat the area defined by the trigger as the area… Am I just being too hopeful? I think I told someone else they could do this not long ago, and well, I seem to be wrong. It's treating area as the whole area.

Or does it just not work when I put OBJECT_SELF in, in an OnHearbeat script, that's on a trigger?

Comments

  • meaglynmeaglyn Member Posts: 151
    Try this one:
    object GetFirstInPersistentObject(
        object oPersistentObject = OBJECT_SELF,
        int nResidentObjectType = OBJECT_TYPE_CREATURE,
        int nPersistentZone = PERSISTENT_ZONE_ACTIVE
    );
    
  • ForSeriousForSerious Member Posts: 471
    That is exactly what I was looking for! I would have never guessed by the name though.
Sign In or Register to comment.