How do you make this condition?

Post » Sat Nov 17, 2012 1:28 am

Currently I'm making an AI package for an NPC Follower that I'm making. What I want it to do is to attack another NPC Follower that I have (much like the PracticeDummy Packages found on other NPCs, except the target is a specific Reference). The attacked NPC follower has his package that'll make him cast heal and oakflesh. In other words, I want them both to look like they're practicing.

This would be easy, but the one I'm having difficulty on is having a certain condition.

I want to make sure that both are actually in the same cell, hell within a radius if possible, when this happens. Both of them are followers, also having their own Sandbox Package that allows them to stay where they are when they are dismissed. Meaning, they won't have a certain cell to go back to.

What I simply want to do is to take the current location of the attacker, and see if it is equal to the current location of the target reference. If this isn't true, the package is ignored.
User avatar
Lily
 
Posts: 3357
Joined: Mon Aug 28, 2006 10:32 am

Post » Fri Nov 16, 2012 5:24 pm

GetInSameCell:

http://www.creationkit.com/GetInSameCell


GetLOS (IN LINE OF SIGHT)

http://www.creationkit.com/GetLOS
User avatar
Melanie Steinberg
 
Posts: 3365
Joined: Fri Apr 20, 2007 11:25 pm


Return to V - Skyrim