Here is the script as it appears in the Creation Kit tutorial:
Function SomeFunction() RegisterForSingleLOSGain(Game.GetPlayer(), SecretDocuments) ; Before we can use OnGainLOS we must register.EndFunctionEvent OnGainLOS(Actor akViewer, ObjectReference akTarget) ;/ If other registrations had been done, we would want to check the viewer and target But since we only registered for one we know what it is Since we only did single los gain, we'll only get this once /; Debug.Trace("Player just saw the documents!")endEvent
Thanks in advance
*I received a message that I do not have permission to post links.