How to? get target coords

Post » Mon Jun 18, 2012 3:01 pm

I want to create a spell that plants something in the world at the target of the corsair (similar to Rune spells or conjuration).

Is that possible? Since I'm not able to find a script function for that.

Thanks
User avatar
Tiffany Holmes
 
Posts: 3351
Joined: Sun Sep 10, 2006 2:28 am

Post » Mon Jun 18, 2012 6:48 am

Additionally, is it possible to target non-actors with a scripted spell?
User avatar
Zosia Cetnar
 
Posts: 3476
Joined: Thu Aug 03, 2006 6:35 am

Post » Mon Jun 18, 2012 4:38 am

Hmm...Possibly have the spell generate an item x distance from the player then immediately drop it to the closest collision plane. Is this something you want to happen at a point decided by the player or a preexisting area that this will happen at. You may want to check how the destruction spells work, there should be something that defines where the burn marks/ice patches show up at.
User avatar
Jessica Colville
 
Posts: 3349
Joined: Wed Oct 18, 2006 6:53 pm

Post » Mon Jun 18, 2012 10:53 am

They are only applying an decal (or visual effect) to the target location, no scripting involved.
What I am missing is
a) a function that tells me where the player is heading (or only to create an object there; create actor exists, but that's of no immediate use)
b)an EVENT that triggers if a spell hits an object (once again only actor hits trigger anything)
User avatar
Brian LeHury
 
Posts: 3416
Joined: Tue May 22, 2007 6:54 am


Return to V - Skyrim