Closed nerdalertdk closed 10 years ago
another way is this
if (_dayTime > 18.5 && _dayTime < 6) then {
_unit addweapon "NVGoggles";
};
Yeah that seems a proper way of doing it. Maybe even add the mission time to _dayTime to make sure it won't be nightfall before the mission ends.
Ahh so if the mission gos by 18.5 a clock ?
Exactly. I dont really know how timing works and if it's possible to do something like timeadd(_dayTime, missiontime); Will have to look that up.
Okay i'll merge this and enhance it further :)
Hmm dont think the time/moon is necessary since the AI turn the NVG on if they need them. seems this will overcomplicate a simple thing.
Agreed. Will use if (_dayTime > 18.5 && _dayTime < 6) then {
why not just always give the AI NVG's ? " if " makes script a little tinybit slower.
Seems less realistic to have AI running around with NV equipped during the day. Now i think of it, how realistic is it that they ALWAYS have NV even during night? It should be chance and missiontype related. AI that are defending the bandit base are likely to be more organised then a few roque ones that are defending something worth a little.
Maybe do it like this, each mission has a % chance of NV on AI. NV will only equip when it is (close to) nightfall.
Like for instance we could set it to 90% on the Bandit base, 90% Ikea, 70% mv22, etc.
Re added NVG's