GetUniqueActor - ActorBase

From Creation Kit
Jump to: navigation, search

Member of: ActorBase Script

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

Syntax

Actor Function GetUniqueActor() native

Parameters

None.

Return Value

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

Examples

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

See Also