It works. There were still some things but you put me in the right direction, Komuna.
Player action ["NV goggles"] works as a toggle (ON/OFF) and when a player has the NVG on, he switches it off when the camera rolls, so I had to remove it first and add it again to bring it in default phase (OFF) before satelite activation
AFAIK there's no command that checks if a player's NVG's is or off..., so I did it that way.
I also needed a bolean (hasNVG) in the init.sqs to define if the player got a NVG at the start of the mission and one local variable _stillhaveNVG to check if he still got it or not.
I'm not a kickass scripter, maybe I made it myself difficult
Anyways, it works now, thx Komuna.
The things I changed/added (Vectorbosson's satilite)
- Satelite activation with (add)action instead of via radio
- start position was player position, now you can choose the area you want to scan via mapsingleclick.
- Nightvision layer apears when you use the satelite, even if the player don't carry one. It also apears when it's daytime, maybe I change it later. I only changed it to fit my mission.
I can't attach it cos it's too big and I don't have any webspace, but if you're interesed give me a sign at ftielemans@extra-logistics.be & I send it to you.(but not today)