TrapSoul - Actor

Revision as of 14:21, 12 October 2010 by imported>Jlundin
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Member of: 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.

SyntaxEdit

bool Function TrapSoul(Actor akTarget) native

ParametersEdit

  • akTarget: The target actor being soul-trapped.

Return ValueEdit

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

ExamplesEdit

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

See AlsoEdit