How to know is Eye detection is Open?

Post » Sat Nov 17, 2012 9:13 pm

Hi

I would like know if the eyes detection is open or get a detection number (0 no visible, 100 fully visible)

Thx
User avatar
Arnold Wet
 
Posts: 3353
Joined: Fri Jul 07, 2006 10:32 am

Post » Sat Nov 17, 2012 9:08 pm

getdetected will return the value if you are detected (fully open). for all of the in-betweens you will have to use a combination of other conditions (alarmed, alerted, etc)
User avatar
NeverStopThe
 
Posts: 3405
Joined: Tue Mar 27, 2007 11:25 pm

Post » Sat Nov 17, 2012 7:44 pm

no information about this function in the wiki :ermm: i will make some test
http://www.creationkit.com/GetDetected
User avatar
Jesus Sanchez
 
Posts: 3455
Joined: Sun Oct 21, 2007 11:15 am

Post » Sat Nov 17, 2012 9:04 pm

Impossible to compile getdetected is not an existing function
User avatar
Ridhwan Hemsome
 
Posts: 3501
Joined: Sun May 06, 2007 2:13 pm

Post » Sat Nov 17, 2012 7:50 pm

that is a condition function. the papyrus equivalent would be found under the actor script:

http://www.creationkit.com/Actor_Script
User avatar
Mari martnez Martinez
 
Posts: 3500
Joined: Sat Aug 11, 2007 9:39 am

Post » Sun Nov 18, 2012 1:59 am

i donc understand how using this function, can you give me an exemple?
User avatar
Adam Porter
 
Posts: 3532
Joined: Sat Jun 02, 2007 10:47 am

Post » Sun Nov 18, 2012 9:26 am

since the detection function must be specified between 2 actors, this would work best on a custom AoE FFself cloak magic effect.

on the script for the magic effect you could use something like this:


Event OnEffectStart(Actor akTarget, Actor akCaster)	 RegisterForSingleUpdate(1)EndEventEvent OnUpdate()	 If (akCaster.IsDetectedBy(akTarget))		  SomebodyGonnaGetAHurtRealBad()	 Else		  RegisterForSingleUpdate(1)     EndIfEndEvent
User avatar
naana
 
Posts: 3362
Joined: Fri Dec 08, 2006 2:00 pm

Post » Sun Nov 18, 2012 4:34 am

I'm not sure this helps at all, but look at the page on http://www.creationkit.com/Stealth_Points.

If you could get the current stealth point value, it would probably do exactly what you want. Sadly there doesn't seem to be an API to get the current value.

It might be worth raising that on the SKSE thread. It may be something that can be exposed fairly simply
User avatar
Maria Leon
 
Posts: 3413
Joined: Tue Aug 14, 2007 12:39 am

Post » Sat Nov 17, 2012 9:59 pm

IsDetectedBy is a bugged function it's return always true (same probleme with OnStoryKillEvent)
I Killed someone without be detected and IsDetectedBy(ActorDead) return true

I want to know if someone saw the player when he out of a building, i can't know wich NPC will be here at this moment

SKSE don't have new function update since several month :(
User avatar
Ebony Lawson
 
Posts: 3504
Joined: Fri Feb 16, 2007 11:00 am

Post » Sun Nov 18, 2012 1:44 am

Any other idea? :confused:
User avatar
cutiecute
 
Posts: 3432
Joined: Wed Sep 27, 2006 9:51 am

Post » Sat Nov 17, 2012 7:45 pm

Make a spell ability that is on the actor that only activate if the condition GetDetected is meet.

In your script you then check to see if the actor is the spell target of that spell.
this is SLOW sometimes (the condition is only check 1 every second) but it will work.
User avatar
MR.BIGG
 
Posts: 3373
Joined: Sat Sep 08, 2007 7:51 am

Post » Sat Nov 17, 2012 5:46 pm

SKSE don't have new function update since several month :(

This is not true, they keep updating it and the last time they updated was for the BETA patch, that added new functions :stare:
User avatar
Ashley Tamen
 
Posts: 3477
Joined: Sun Apr 08, 2007 6:17 am


Return to V - Skyrim