Jump to content
Sign in to follow this  
gatordev

Sun position command for NVGoggles

Recommended Posts

I know the answer is out there, but I can't figure out the right Google search to give me the correct command...

I'm trying to make a trigger where if the sun is in a certain position (or even if it's a specific time of day), then an AI unit within a trigger field who is already equipped with NVGoggles would then have them "assigned." I'm trying to avoid having a bunch of units walking around with their NVGs on their helmets, but flipped up during the day. Instead, they have them in their kits, but not assigned. I'm thinking it would be something like:

ACTIVATION:  sun is low/time of day is x

{assignitem "NVGoggles" _x;} forEach units group this

Am I on the right track? What's the best way to detect time of day/sun position? Appreciate any help.

Share this post


Link to post
Share on other sites

condition:

dayTime < 4 && dayTime > 20

on act:

{_x assignitem "NVGoggles"} forEach units group this

Edited by cobra4v320

Share this post


Link to post
Share on other sites

Thanks a bunch to both of you. For some reason, Googling "Sun" and "Arma" didn't yield the sunOrMoon command. I knew there was something there.

I'll mess with it tonight.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×