GetUniqueActor - ActorBase

Member of: ActorBase Script

Obtains the unique actor reference for this actor base. (Assuming the actor is actually unique)

SyntaxEdit

Actor Function GetUniqueActor() native

ParametersEdit

None.

Return ValueEdit

The actor for this unique actor base. If the actor is not persistent or is not currently loaded this may return NONE.

ExamplesEdit

;kill an NPC from a list
ActorBase TargetNPC = TargetFormList.GetAt( inexttarget );
Actor target = TargetNPC.GetUniqueActor();
target.Kill();

See AlsoEdit