Difference between revisions of "CastImmediateOnSelf"
Jump to navigation
Jump to search
imported>Geckbot m (Robot: Automated text replacement (-\[\[Category:(.*?)\(GECK 1.0\)\]\] +Category:\1(GECK 1.1))) |
imported>Dandys |
||
Line 12: | Line 12: | ||
myRef.CastImmediateOnSelf mySpell | myRef.CastImmediateOnSelf mySpell | ||
Player.CastImmediateOnSelf Stimpak | |||
==Notes== | ==Notes== | ||
*This can also be used with ingestible items, by substituting the item's Form ID for the spell ID | |||
*In practice this will be often be used similarly to adding an ability (something that you want to effect the actor, but that you don't want him "casting"), however, rather than adding it to the base object (as addSpell does) '''CastImmediateOnSelf''' will only affect the reference and has a duration (because it is a spell, rather than an ability). | *In practice this will be often be used similarly to adding an ability (something that you want to effect the actor, but that you don't want him "casting"), however, rather than adding it to the base object (as addSpell does) '''CastImmediateOnSelf''' will only affect the reference and has a duration (because it is a spell, rather than an ability). | ||
*'''Caveat:''' This function only works with self targeted spells. | *'''Caveat:''' This function only works with self targeted spells. |
Revision as of 19:16, 10 December 2010
Description
CastImmediateOnSelf causes the actor to cast the spell immediately on himself bypassing the casting animation. This works for spells that are target self.
Syntax
[ObjectREF.]CastImmediateOnSelf <spell ID>
CIOS <spell ID>
Examples
myRef.CastImmediateOnSelf mySpell
Player.CastImmediateOnSelf Stimpak
Notes
- This can also be used with ingestible items, by substituting the item's Form ID for the spell ID
- In practice this will be often be used similarly to adding an ability (something that you want to effect the actor, but that you don't want him "casting"), however, rather than adding it to the base object (as addSpell does) CastImmediateOnSelf will only affect the reference and has a duration (because it is a spell, rather than an ability).
- Caveat: This function only works with self targeted spells.
- This function is new in the GECK, and was not available in the TES4 Construction Set.