Spell script spawn where cast

Post » Tue Jun 19, 2012 1:06 pm

Hi,

I've created a spell using a script to spawn an actor when I cast it. I'm not using the built in summon spell to summon the actor but a script (so that I can spawn more than 1 of them (or 2 with twin souls)). Right now it just uses the OnEffectStart(Actor akTarget, Actor akCaster) event and akTarget.placeatme to spawn actor. This means if i cast it at the ground it spawns on me.

Can anyone tell me how/what event I would use to make the actor spawn where i cast the spell?
User avatar
Laura Richards
 
Posts: 3468
Joined: Mon Aug 28, 2006 4:42 am

Post » Tue Jun 19, 2012 7:37 am

I guess, you need to change your http://www.creationkit.com/Magic_Effect method to Target Location.
User avatar
Yonah
 
Posts: 3462
Joined: Thu Aug 02, 2007 4:42 am

Post » Tue Jun 19, 2012 8:30 am

I have my delivery method as target location, but it is a script doing the summoning, not just the built in summon creature effect, so my query is how do i get that target location in the script and spawn my actor at it. My script is based off the "HowlWerewolfSummonWolvesEffect"s and the script that they have to do the summoning.
User avatar
Marguerite Dabrin
 
Posts: 3546
Joined: Tue Mar 20, 2007 11:33 am

Post » Tue Jun 19, 2012 12:47 am

have you tried using a XMarker (Activator) location yet?
User avatar
Stephanie I
 
Posts: 3357
Joined: Thu Apr 05, 2007 3:28 pm

Post » Tue Jun 19, 2012 7:23 am

Set it up with a projectile, have the projectile spawn an (invisible) explosion, and drop an invisible activator. Do the placeatme on that. Be sure to delete the activator after the summon, so you can place your next NPC in a different spot.

(Shudders at the thought of 100 Ciceros...)
User avatar
Chris BEvan
 
Posts: 3359
Joined: Mon Jul 02, 2007 4:40 pm

Post » Tue Jun 19, 2012 6:04 am

Thank you Redwood, I ended up reading through a couple posts about that and after a bunch of trial an error managed to figure out how to do it and got mine working.
User avatar
Esther Fernandez
 
Posts: 3415
Joined: Wed Sep 27, 2006 11:52 am


Return to V - Skyrim