OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Laser on 15 Jun 2004, 19:00:34

Title: Fixed NVGs script?
Post by: Laser on 15 Jun 2004, 19:00:34
OK, here's what i'd like to find out: is it possible to script an option for a fixed NVG (mounted on helmet like that's done on BAS SOAR) to automatically lower when the darkness falls and to be automatically raised in the morning, so the AI units would be able to auto lower/raise the NVG's? Thanks in advance.
Title: Re:Fixed NVGs script?
Post by: Dubieman on 16 Jun 2004, 02:50:57
I believe that they already do that. Once night falls they put them on and once its light out they take them off.

Or are you askin to have them permanatly on the helmet, it just raises up when not in use? :P
Title: Re:Fixed NVGs script?
Post by: Laser on 16 Jun 2004, 09:48:30
I believe that they already do that. Once night falls they put them on and once its light out they take them off.

Or are you askin to have them permanatly on the helmet, it just raises up when not in use? :P

Yeah, i mean exactly that. Fixed helmet mounted NVGs.
Title: Re:Fixed NVGs script?
Post by: Dubieman on 16 Jun 2004, 17:34:44
Well I can't help you there since I have no knowledge of advanced scripting or addons. But wouldn't this be an addon? You'd need a new helmet model or something.....
Title: Re:Fixed NVGs script?
Post by: OrangeLeader on 16 Jun 2004, 20:09:23
not an addon a script. Laser wants the current NVG to stay down. You can do this by finding the varibale that checks if the AI charater needs that googles on or not and set it to stay true always.

I was wondering why you needed this? In night battles I don't really notice if NVG are on or not. The comabt is happening so fast.
Title: Re:Fixed NVGs script?
Post by: Homefry31464 on 16 Jun 2004, 20:26:54
There is a command, daytime, which may be what you are looking for....Then just determine what time it is, and if it is the right time, then go ahead and run the animation to lower the goggles.
Title: Re:Fixed NVGs script?
Post by: Laser on 18 Jun 2004, 18:02:26
There is a command, daytime, which may be what you are looking for....Then just determine what time it is, and if it is the right time, then go ahead and run the animation to lower the goggles.

Yes, this might help... but how can one accomplish this via, say, an eventhandler? I'm no decent scripter by any means, so can anyone finally help me with this?