Mod:Creation Kit/Cast - Scroll

Member of: Mod:Creation Kit/Scroll Script

Casts this scroll from the specified object reference, optionally toward a target object reference.

Syntax
Function Cast(ObjectReference akSource, ObjectReference akTarget = None) native

Parameters

 * akSource: The ObjectReference from which to cast the scroll. The source must be able to cast this scroll.
 * akTarget: An optional ObjectReference at which to aim the spell. If None is passed and the scroll needs a direction, it will be aimed in a default direction.
 * Default: None

Return Value
None.

Examples
Fireball.Cast(Wizard) Fireball.Cast(Wizard, Victim)
 * Cast the fireball scroll from the wizard
 * Cast the fireball scroll from the wizard at the victim