PAPVAFS11 Posted March 23, 2023 Share Posted March 23, 2023 I want to have creatures behave differently when the player has their light on, but I haven't found a good way to detect the PIP-Boy light state, and my searches in the past have been discouraging. Has this changed since I last looked? Link to comment Share on other sites More sharing options...
NeinGaming Posted March 23, 2023 Share Posted March 23, 2023 (edited) At least according to the author of Enjoy the Darkness, no (edit: I say that because it can get "out of sync" with the actual flash light state, and has a function to use when that happens). Or put differently, if you find a way, be sure to let them know, too ^^ Edited March 23, 2023 by NeinGaming Link to comment Share on other sites More sharing options...
niston Posted March 23, 2023 Share Posted March 23, 2023 bakaframework I believe provides an AV with the flashlight state. Link to comment Share on other sites More sharing options...
RaidersClamoring Posted March 23, 2023 Share Posted March 23, 2023 There are listed animation events that you could try. "pipboyLightOff""pipboyLightOn" The things stated as being AnimEvents in CK don't always work, or may have weird secondary trigger conditions, but it's worth a shot.BakaUtil is great though, probably more reliable. Link to comment Share on other sites More sharing options...
PAPVAFS11 Posted March 27, 2023 Author Share Posted March 27, 2023 bakaframework I believe provides an AV with the flashlight state.This is just what I needed, thank you. Now if only I could get the flashlight state for NPCs... Link to comment Share on other sites More sharing options...
LarannKiar Posted March 27, 2023 Share Posted March 27, 2023 (edited) I think it's possible with F4SE. You'd need to register your script for the flashlight control with RegisterForControl, then use the events OnControlDown/OnControlUp to store the flashlight state. Without F4SE, you might be able to achieve the same goal with GetLightLevel, after a lot of tinkering I guess.. GetLightLevel has a Condition (and Console if I'm remembering right) variants too. They're useful if you'd like to utilize forms that accept conditions or want to see the actual values it returns through the console interface. (GetLightLevel should work on NPCs). Edited March 27, 2023 by LarannKiar Link to comment Share on other sites More sharing options...
Recommended Posts