Difference between revisions of "Cast"

73 bytes added ,  07:11, 12 January 2008
no edit summary
imported>DragoonWraith
(CS 1.0)
imported>Kenet korva
Line 10: Line 10:


*This function can be used to force the player to cast a spell on himself, but cannot force him to cast Touch or Target range spells at other actors or objects.
*This function can be used to force the player to cast a spell on himself, but cannot force him to cast Touch or Target range spells at other actors or objects.
BUT: Used when player controls are disabled may cause the game to crash.
*If called by an actor, the actor will play his normal spellcasting animations while casting the spell. If the actor is a creature with no spellcasting animation, the function will not work. When called on anything other than an actor, the calling object does not animate.
*If called by an actor, the actor will play his normal spellcasting animations while casting the spell. If the actor is a creature with no spellcasting animation, the function will not work. When called on anything other than an actor, the calling object does not animate.
*Only certain types of objects appear to serve as valid targets. Actors and activators work, but when some other object types, such as Items, are supplied for the Target parameter, the spell projectile will travel down the negative ''y''-axis rather than in the direction of the target.
*Only certain types of objects appear to serve as valid targets. Actors and activators work, but when some other object types, such as Items, are supplied for the Target parameter, the spell projectile will travel down the negative ''y''-axis rather than in the direction of the target.
Anonymous user