I'm trying to get the Ref of a leveled Actor (LvlAnimalCanyonPrey) around the Player with a script.
Scriptname AASSAliasScript extends ReferenceAliasActor Property PlayerRef AutoActorBase Property EncGoatWild AutoActorBase Property LvlAnimalCanyonPrey AutoObjectReference Goat01RefObjectReference Goat02RefEVENT OnUpdate()Goat01Ref = FindClosestReferenceOfTypeFromRef(LvlAnimalCanyonPrey, PlayerRef, 1000.0) ; leveled Actorif ( Goat01Ref != None )Debug.Notification("Here's the goat !")endifGoat02Ref = FindClosestReferenceOfTypeFromRef(EncGoatWild, PlayerRef, 1000.0) ; ActorBase used in LCharAnimalCanyonPrey (Template of leveled Actor)if ( Goat02Ref != None )Debug.Notification("Here's the goat !")endifEndEVENTBut it doesn't work. So i tested a lot of things, in vain, until this :
Actor ActorGoatActorGoat = FindRandomActorFromRef(PlayerRef, 500.0)if ( ActorGoat != None ) && ( ActorGoat != PlayerRef ) && ( ActorGoat.GetActorBase() == LvlAnimalCanyonPrey )Debug.Notification("Here's FINALLY the goat !")endifAnd this is finally working, but the reads randomly return PlayerRef instead of the goat, so i would prefer to use a Ref & FindRef instead of an Actor.
Tried to use the first script with Actor casting; it works for "real" (non-leveled) EncGoatWild but not for leveled Actor.
Is something done wrong (cast and/or script extension) or is it simply not possible to get this Ref with FindRef functions ?

