Jump to content

Can't Get Night Vission Effects to work on Helmet


stormmage

Recommended Posts

I am having trouble getting Night Vision to work properly on the Desert Ranger helmet from Honest Hearts. I successfully duplicated the item, copied the Elite Riot Gear helmet script (for sneak sight) but after adjusting the parameters to trigger the low light vision, it will not trigger.

 

I have two seperate effects for Low-Light, one for auto night vision outside set as:

 

R HasMagicEffect Base Effect: 'CateyeBaseEffect' == 0.00 AND

R IsInInterior None == 0.00 AND

S GetCurrentTime None >= 20.25 OR

S GetCurrentTime None <= 5.75 OR

 

the other for Inside sneaking vision

 

S IsSneaking None == 1.00 AND

R IsInInterior None == 1.00 AND

R HasMagicEffect Base Effect: 'CateyeBaseEffect' == 0.00 AND
Can anyone point out what I am doing wrong here?
Edited by stormmage
Link to comment
Share on other sites

Why do you have two ANDs and two ORs on the bottom effects? Beginner coder myself, so this might be a very stupid question.

 

Also, very stupid question, I know. Where are you actually giving the Cateye effect to the player? You're checking all the right conditions, sure, but the Elite Riot Gear helmet probably had something else in its script, didn't it? Have you tried adding debug statements to your code as well, see what statements are actually triggering?

Link to comment
Share on other sites

I copied the Riot Gear script and modified it to those conditions. The top one is almost identical to the Riot Helmet. The effects are added via apparel modifications like any other stat modifier on armor. To answer your first question, I only want the effect (first AND) to trigger when the player is outside (second AND) and between those times (OR statements) for general night vision regardless if sneaking or not. The second effect is designed to require the player be both indoors and sneaking to trigger the night vision.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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