Jump to content


Photo

PersonalSpaceDistance()


  • Please log in to reply
4 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 23 August 2017 - 05:59 AM

Did you know that it works at any range, unlike Range(), which is limited to the visual scope - 30? It also checks true when the object is within the distance, not "exactly at that distance" as the G3 guide says. So it's the same as Range() but without the distance limitation.

 

So this:

 

...

NextTriggerObject(Player1)

PersonalSpaceDistance("ogre",100)

 

...

 

Kill(Player1)

 

- will kill the main character if he goes anywhere near an ogre.



#2 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 23 August 2017 - 12:47 PM

Range() has no distance limitations, it's the Nearest()-like and [] object types that don't exist outside of LoS (which is usually 30').


Retired from modding.


#3 temnix

temnix
  • Member
  • 983 posts

Posted 23 August 2017 - 01:11 PM

Tripped up by the G3 guide, again.

 

What happens if a creature gets a visual range boost?


Edited by temnix, 23 August 2017 - 01:13 PM.


#4 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 23 August 2017 - 03:38 PM

I would expect it to See() the [] and Nearest() objects at up to 48' range, which is the maximum possible visibility distance (or the cap was changed somewhere in EE, don't remember).


Edited by GeN1e, 23 August 2017 - 03:38 PM.

Retired from modding.


#5 temnix

temnix
  • Member
  • 983 posts

Posted 23 August 2017 - 03:57 PM

Yeah, I just checked. About 50.