Mod:Creation Kit/RemoteCast - Spell

Member of: Mod:Creation Kit/Spell Script

Casts this spell from the specified object reference with a specified Actor getting the "blame" for the spell if it could cause a crime to occur, optionally toward a target object reference.

Syntax
Function RemoteCast(ObjectReference akSource, Actor akBlameActor, ObjectReference akTarget = None) native

Parameters

 * akSource: The ObjectReference from which to cast the spell. The source must be able to cast this spell.
 * akBlameActor: The Actor who will be taking blame for the spell if adding it to a target would cause a crime.
 * akTarget: An optional ObjectReference at which to aim the spell. If None is passed and the spell needs a direction, it will be aimed in a default direction.
 * Default: None

Return Value
None.

Examples
Fireball.RemoteCast(Box, Game.GetPlayer) Fireball.RemoteCast(Box, Game.GetPlayer, Victim)
 * Have the box cast a fireball, but blame the player!
 * Have the box cast a fireball at the victim, but blame the player!