OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: loki72 on 16 Nov 2008, 06:48:26

Title: start the player with NVG on? (solved)
Post by: loki72 on 16 Nov 2008, 06:48:26
yup.. as the title suggest...

at the beginning of the game, i'd like to start the player with his/her nightvision on...any ideas how?

 :)
Title: Re: start the player with NVG on?
Post by: Mandoble on 16 Nov 2008, 12:22:35
You may try:
Code: [Select]
camUseNVG true;
Title: Re: start the player with NVG on?
Post by: UH60MG on 16 Nov 2008, 14:00:42
player action ["NVGOGGLES",player]
Title: Re: start the player with NVG on?
Post by: loki72 on 16 Nov 2008, 16:52:33
i tried them both from the init.sqf and the units init...

no joy....
Title: Re: start the player with NVG on?
Post by: i0n0s on 16 Nov 2008, 16:54:57
The second one works.
Remember my mission? There it was that code to start the night vision.
There is only one important point:
That code has to be executed at the time the mission has the started and the initialisation of the player is finished.
Title: Re: start the player with NVG on?
Post by: loki72 on 16 Nov 2008, 16:59:00
 :blink: :whistle:
i'm such a noob.. forgot i removed all weapons from a differnt script.. put the code in the para script.. all is well.

thank you all!

 :D