Jump to content
Heavy Traffic ×

Is there a reliable way to detect flashlight state yet?


Recommended Posts

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

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 by LarannKiar
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...