It's a Spell+MagicEffect attached to actors. I can use my GrabbedActorID variable to apply other effects to grabbed targets, so it should be valid.
This gives me a compile error ( GetLightLevel is not a function or does not exist):
Scriptname test extends activemagiceffectObjectReference GrabbedActorIDEvent OnGrab()GrabbedActorID = Game.GetPlayerGrabbedRef()endEventEvent OnRelease() Debug.MessageBox(GrabbedActorID.GetLightLevel())endEvent
But this compiles and works ingame:
Scriptname test extends activemagiceffectObjectReference GrabbedActorIDEvent OnGrab()GrabbedActorID = Game.GetPlayerGrabbedRef()endEventEvent OnRelease() Debug.MessageBox(Game.GetPlayer().GetLightLevel())endEvent
