Jump to content
Sign in to follow this  
Coolinator

how to add night vision to divers??

Recommended Posts

How do you add night vision to divers? im doing a night mission, and it's hard being a diver without Night vision, especially swimming in the dark.

How do i add night vision to divers? and make it loop, so when they die, they still have their night vision everytime they respawn. Also thats works for dedicated server?

Edited by Coolinator

Share this post


Link to post
Share on other sites

Or use the onPlayerRespawn.sqf if your feeling adventurous :p. And don't worry both Dreaded's and my method are dedi compatible :D.

Edited by JShock

Share this post


Link to post
Share on other sites
linkItem "NVGoggles";
player addEventHandler ["Respawn",
{
(_this select 0) linkItem "NVGoggles";
}];

Thank you!!!!!

---------- Post added at 09:24 ---------- Previous post was at 09:23 ----------

Or use the onPlayerRespawn.sqf if your feeling adventurous :p. And don't worry both Dreaded's and my method are dedi compatible :D.

THank you :) tbh i dont know what is onplayerrespawn.sqf lol i havent used it before.

---------- Post added at 09:47 ---------- Previous post was at 09:24 ----------

guys i just tested it and there's no night vision in my invetory :( im playing as assault diver. i even tried getting night vision in ammo box, and it seems i cant get it for some reason. I also tried putting: this additem "NVGoggles"; in my player init, and still no night vision :(

Share this post


Link to post
Share on other sites
player linkItem "NVGoggles";

player addEventHandler ["Respawn",

{

(_this select 0) linkItem "NVGoggles";

}];

"linkItem" won't work without a reference – in case you forgot adding it yourself.

To put it in the init-line, just replace "player" with "this" and remove the linebreaks.

Share this post


Link to post
Share on other sites
"linkItem" won't work without a reference – in case you forgot adding it yourself.

To put it in the init-line, just replace "player" with "this" and remove the linebreaks.

Thank you so much!!!!!!!!!!! i really i appreciate it!!!! i mean it!!!!! :)

Quick question, this script give all players night vision rite? not just one player. Sorry im really not a pro scripter like u guys thats why i came here to ask for help.

Share this post


Link to post
Share on other sites

Do NVGs even work under water? Not sure what special forces do but real life divers use lights.

Share this post


Link to post
Share on other sites
Do NVGs even work under water? Not sure what special forces do but real life divers use lights.

I just tested it, It works :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×