Which event I use when a NPC caught me?

Post » Sat Apr 26, 2014 4:31 am

Hello,

as subject :)

Thanks!

User avatar
Mandy Muir
 
Posts: 3307
Joined: Wed Jan 24, 2007 4:38 pm

Post » Fri Apr 25, 2014 10:22 pm

I've used this and it works: http://www.creationkit.com/OnCombatStateChanged_-_Actor

But I was hoping by doing a script on Player Alias.

User avatar
Juanita Hernandez
 
Posts: 3269
Joined: Sat Jan 06, 2007 10:36 am

Post » Sat Apr 26, 2014 6:59 am

What does it mean that NPC caught you?

OnHit maybe if used defensively.

OnActorAction (SKSE) if offensively.

User avatar
Anna Watts
 
Posts: 3476
Joined: Sat Jun 17, 2006 8:31 pm

Post » Fri Apr 25, 2014 11:54 pm

I must be not detected but I want that the Player can kill silently (sneaking kill)

I used this on the enemy actor:

Scriptname manny_GF_SetStageCombatStateScript extends Actor  Quest Property manny_GF_MQ  Auto  Int Property myStage Auto  Event OnCombatStateChanged(Actor akTarget, int aeCombatState)    if (aeCombatState == 1 && akTarget == Game.GetPlayer())        manny_GF_MQ.setStage(myStage)    endifEndEvent

According to the CK site, aeCombatState == 1 means that the actor is in Combat mode. However it trigs too even if I kill the enemy in one shot silently.

Also, I want to avoid to use SKSE.

User avatar
Hannah Barnard
 
Posts: 3421
Joined: Fri Feb 09, 2007 9:42 am

Post » Sat Apr 26, 2014 1:59 am

I used http://www.creationkit.com/IsDetectedBy_-_Actor. Basically had an event OnLOSGain, and did a check to see if detected, then if not just polled for a bit.
User avatar
lauren cleaves
 
Posts: 3307
Joined: Tue Aug 15, 2006 8:35 am


Return to V - Skyrim