Author Topic: How to Determine if a Placeable is Seen?  (Read 330 times)

Legacy_Thayan

  • Sr. Member
  • ****
  • Posts: 435
  • Karma: +0/-0
How to Determine if a Placeable is Seen?
« on: October 20, 2014, 01:35:59 am »


               

I'm wondering if anyone has an idea for setting up a script to determine if a placeable is seen by a PC? GetObjectSeen would be perfect for what I need, but of course it doesn't work with placeables. Has anyone developed a homebrew function or some other method to do this?



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
How to Determine if a Placeable is Seen?
« Reply #1 on: October 20, 2014, 02:03:13 am »


               

Can check for line of sight?



               
               

               
            

Legacy_Thayan

  • Sr. Member
  • ****
  • Posts: 435
  • Karma: +0/-0
How to Determine if a Placeable is Seen?
« Reply #2 on: October 20, 2014, 02:30:58 am »


               

Oh man - now I feel really smart. I forgot about the parameter in the GetFirst/Next Object functions and I never knew the LineOfSight functions existed. '<img'> But after browsing through their description in the Lexicon, it looks like that should work for what I need.


 


Thanks henesua!