Talk:Cast
--Mrflippy 00:29, 13 April 2006 (EDT): It looks like this command may not work if the player is targeted and god mode is active. For example "activator.cast FlippySpell player" doesn't seem to be working with god mode active.
- --Kkuhlmann 08:41, 13 April 2006 (EDT): All bets are off if you're in god mode. Don't test your scripts while in god mode...
Stalker 13:16, 17 April 2006 (EDT) This doesn't seem to work on containers god mode or not.
--Blackblade 20:35, 16 November 2006 (EDT) Is there a way to cast target spells without an Refrence?
- It depends what you mean. If its an AoE spell, just place an invisible activator and have it cast the spell at the player; or, place a tiny corpse near the activator and use that as the target of the spell.
- If you want a target spell fired in a particular direction, but not at a particular reference, place two invisible activators along the path you want the spell to follow and have the first cast the spell at the second. Scruggs 04:39, 17 November 2006 (EST)
Seems that spells targeting someone else (not self) will be treated as touch spells. As such, if the command is used on an npc to cast a "ranged spell" (target instead of touch or self), the npc would walk up to the target and cast the spell instead, or else it would just continue pursue. This was explained to me by Xcom. Any idea on how to fix this? Without possibly doing something similar to what Scruggs suggested above? (for another situation, which might also benefit this) Reinhartmenken 23:47, 7 December 2006 (EST)
- Yeah, that's really annoying, especially since if an NPC is too far away from the target or just isn't in the mood, he'll sometimes just ignore the Cast completely.
- The only idea I have off-hand is to call Look to make the NPC face the target, tell him to play the casting animation, and then stick an activator in front of him to cast the spell at the target. Probably not what you wanted to hear.
- Might be worth popping over to the OBSE Wish List to put in a request. They really do take requests into consideration, although they've got plenty to keep them busy already. Scruggs 00:55, 8 December 2006 (EST)
Dragoon Wraith TALK 16:12, 21 May 2007 (EDT): Heh, could have sworn that Casting at an Activator didn't work when I tested it... but I was trying so many different things to get it to work, so who knows. I didn't realize it was an issue with Cast until later on in my testing, so I was trying to use different things to get MoveTo/SetPos to work, assuming those were the problems with my script's horrible aim. Anyway, thanks for fixing that, mmmpld and Scruggs! Good to know about the Self range spells for the player, too.
What happens if Cast is used on the player, with a Target spell, and no target ID is supplied? Does it cast along the current heading, or does it not cast at all? Abramul 18:53, 23 October 2007 (EDT)