How do you run a procedure from a script?

Post » Wed Jun 20, 2012 5:28 am

I need to make an actor cast a spell, and the way I have it done now doesn't actually do the animations, it just casts the spell. I know I need to use UseMagic, but I don't know how to get it running...
User avatar
Mylizards Dot com
 
Posts: 3379
Joined: Fri May 04, 2007 1:59 pm

Post » Wed Jun 20, 2012 12:17 pm

You would use it in a scene. Doug uses the "UseWeapon" procedure package in http://www.youtube.com/watch?v=rter3FIzvZs

what you would need to do is, write a small scene with just one phase that has him usemagic, and have the phase end on a timer (how long should he cast the spell) - you're going to want to make an alias for whatever he is targetting so you can reference that in the scene. Have the quest start activate the scene, and have the scene advance the quest to phase 10 when it's done (be sure to set the actor behavior to NOT end the scene when in combat!), make phase 10 the quest end phase, and then to make him use the spell, just start the quest in the script.

Make sure the quest is repeatable of course.
User avatar
x_JeNnY_x
 
Posts: 3493
Joined: Wed Jul 05, 2006 3:52 pm

Post » Wed Jun 20, 2012 6:31 pm

Luckily he is casting it on himself. Thanks Elf!
User avatar
Tom
 
Posts: 3463
Joined: Sun Aug 05, 2007 7:39 pm


Return to V - Skyrim