Mod:Creation Kit/TrapSoul - Actor

Member of: Mod:Creation Kit/Actor Script

Attempts to trap the soul of the target actor in a soul gem in the inventory of the calling actor. Returns success/failure.

Syntax
bool Function TrapSoul(Actor akTarget) native

Parameters

 * akTarget: The target actor being soul-trapped.

Return Value
True if the actor successfully trapped the given actor's soul. False, otherwise.

Examples
if Game.GetPlayer.TrapSoul(Elvis) Debug.Trace("Time to power up rock and roll!") endIf
 * Have the player try to trap the soul of elvis