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
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?
