Hey guys, I haven't messed around with Papyrus all that much yet, however I'm trying to achieve something that, in theory, seems simple. Basically I have a script attached to an actor and the only function is a LOS check to see if the player sees this actor. If true, it'll do stuff, but it seems that I've messed up somewhere as it's not registering that I see the actor. I've attached the script below and I've used the wiki page on the HasLOS function and it doesn't seem to work. If someone could guide me in the right direction as to where I've messed up, that would be great. Thanks.
Script:
Scriptname AAA_TestScript extends ActorFunction PlayerCanSee()if (Game.GetPlayer().HasLOS(Self)) Debug.Notification("The Player sees asdf")endifendFunction
I understand that Self can be a bit wonky depending on how it's used, although I can't find another reliable way to get the reference of the object the script is attached to (I intend this to be multiple actors eventually, not just the one).