bassboykn 1 Posted May 18, 2021 Hey guys! I’m trying to create a WWII POW Escape mission that features AI guards and some AI prisoners to make the prison lively. Basically I want the camp AI prisoners to walk around the camp in the daytime but go into their huts and stay there at nighttime before then coming back out again in the morning and doing that whole day/night cycle over again indefinitely - is it possible do this? I can only seem to make them cycle in the yard indefinitely regardless of the time of day, but if they’re out at night (when they shouldn’t be) then the searchlights go mad and it kills the immersion. Any help appreciated! 1 Share this post Link to post Share on other sites
Von Quest 1161 Posted May 18, 2021 https://community.bistudio.com/wiki/sunOrMoon You can use sunOrMoon to check day/night. Sun Up is 1, and Sun Down is 0. Dawn/Dusk is in-between. You'd have to run a loop and check that number every x min or so. Or better, you can also try the BIS function sunrise as well. https://community.bistudio.com/wiki/BIS_fnc_sunriseSunsetTime 2 Share this post Link to post Share on other sites
pierremgi 4822 Posted May 19, 2021 Good idea... but not so easy to script. Do you already have a map, a camp, how many prisoners, how do you manage their positions at night? Share this post Link to post Share on other sites