GetUniqueActor - ActorBase
Jump to navigation
Jump to search
Member of: ActorBase Script
Obtains the unique actor reference for this actor base. (Assuming the actor is actually unique)
Syntax[edit | edit source]
Actor Function GetUniqueActor() native
Parameters[edit | edit source]
None.
Return Value[edit | edit source]
The actor for this unique actor base. If the actor is not persistent or is not currently loaded this may return NONE.
Examples[edit | edit source]
;kill an NPC from a list
ActorBase TargetNPC = TargetFormList.GetAt( inexttarget );
Actor target = TargetNPC.GetUniqueActor();
target.Kill();