Difference between revisions of "Cast"

284 bytes added ,  06:43, 15 January 2011
m
no edit summary
imported>PoHa!
m (→‎See Also: fixed an error)
imported>Ez0n3
m
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Syntax:'''
{{Function
  [[''ActorID''|''ActivatorID''.]Cast ''EffectID'' [''TargetRefID'']
  |CSWikiPage = Cast
'''Example:'''
|origin = GECK1
  Cast WellRestedSpell Player
|summary = Leftover from Oblivion
 
|name = Cast
Calling object casts the specified spell at the target.
|returnVal = 0, 1
The behavior of this function depends on the range of the spell and the types of the calling object and target reference:
|returnType = void
|referenceType = [ActorID,ActivatorID]
|arguments =
  {{FunctionArgument
  |Name = EffectID
  |Type = ref
  |Optional = n
  }}{{FunctionArgument
  |Name = TargetRefID
  |Type = ref
  |Optional = y
  }}
  |example = Cast WellRestedSpell Player
}}


==Notes==
==Notes==
*This function is unused in the default game, though scripts will still compile using the above syntax.
*This function is unused in the default game. Even though scripts will still compile using the above syntax, nothing happens when Cast is invoked. Use [[CastImmediateOnSelf]] instead.


=='''See Also'''==
=='''See Also'''==
Line 15: Line 28:


[[Category:Functions]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]
[[Category:Game Effect Functions]]
[[Category:Game Effect Functions]]
[[Category:Game Effect Functions (GECK 1.1)]]
[[Category:Actor Functions]]
[[Category:Actor Functions]]
[[Category:Actor Functions (GECK 1.1)]]
Anonymous user