How to check for player (detectedhidden)?

Post » Mon Jun 18, 2012 6:59 am

Hi!

I'm currently working on a script which adds an IMOD when player is sneaking.

Right now I'm stuck at the part where I need to check for player if is detected or hidden.

The script is in (Spoiler):
Spoiler

Scriptname _SneakingEffectScript extends Form Conditional

ImageSpaceModifier property _01SneakingEffect Auto

Function Apply(Float afStrength = 1.0) native
Function Remove() native


Event OnInit()
RegisterForUpdate(0.25)
gotostate ("polling"
EndEvent

State polling

Event OnUpdate()
if game.getplayer().isSneaking() && game.getplayer().GetLightLevel() <= 44
_01SneakingEffect.Apply(1)
endif

EndEvent

EndState

Does anyone know a way to check for player detection from ANY actor? The only way I know is .isDetectedBy(someone specific) but I want to check for any actor, not just a specific one.

Later Edit: As I see on Wiki, there's also Stealth Points, but it doesn't specify what kind of value it is, tried to check with GetAV, not working. What is it?
User avatar
Rachie Stout
 
Posts: 3480
Joined: Sun Jun 25, 2006 2:19 pm

Post » Mon Jun 18, 2012 4:29 pm

As far as I know, it isn't possible. Why, I have no clue. Bethesda seems to have removed as much functionality as they have put in to the new scripting system.
User avatar
rheanna bruining
 
Posts: 3415
Joined: Fri Dec 22, 2006 11:00 am


Return to V - Skyrim