Difference between revisions of "Spell Script"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Jlundin
 
imported>Jog
Line 19: Line 19:


== Member Functions ==
== Member Functions ==
*Function [[Cast - Spell|Cast]](ObjectReference akSource, ObjectReference akTarget)
'''Function [[Cast - Spell|Cast]](ObjectReference akSource, ObjectReference akTarget)'''
**Casts this spell from the source object reference, optionally toward a target object reference.
*Casts this spell from the source object reference, optionally toward a target object reference.
*bool Function [[IsHostile - Spell|IsHostile]]()
 
**Returns whether this spell is considered hostile or not.
'''bool Function [[IsHostile - Spell|IsHostile]]()'''
*Function [[RemoteCast - Spell|RemoteCast]](ObjectReference akSource, Actor akBlameActor, ObjectReference akTarget)
*Returns whether this spell is considered hostile or not.
**Casts this spell from the source object reference, with akBlameActor getting blame for any crime
 
'''Function [[RemoteCast - Spell|RemoteCast]](ObjectReference akSource, Actor akBlameActor, ObjectReference akTarget)'''
*Casts this spell from the source object reference, with akBlameActor getting blame for any crime


== Events ==
== Events ==
None
None

Revision as of 13:06, 20 February 2012


Extends: Form Script

Script for the manipulation of spells.

Definition

ScriptName Spell extends Form

Properties

None

Global Functions

None

Member Functions

Function Cast(ObjectReference akSource, ObjectReference akTarget)

  • Casts this spell from the source object reference, optionally toward a target object reference.

bool Function IsHostile()

  • Returns whether this spell is considered hostile or not.

Function RemoteCast(ObjectReference akSource, Actor akBlameActor, ObjectReference akTarget)

  • Casts this spell from the source object reference, with akBlameActor getting blame for any crime

Events

None