Jump to content
Sign in to follow this  
tmp95

Take away night vison goggles from Opfor? What INIT code to use?

Recommended Posts

If I want to take away NVGs for Opfor units I place in the editor. How do I do this?? What code would need to be placed in the INIT of a given unit (and for their group)?

Thank you!

Share this post


Link to post
Share on other sites

Well for a single opfor put this in the init

this unassignItem "NVGoggles_OPFOR";

this removeItem "NVGoggles_OPFOR";

Share this post


Link to post
Share on other sites

For a group you can place

{_x unassignItem "NVGoggles_OPFOR"; _x removeItem "NVGoggles_OPFOR"} forEach units group this;

in the init of the team leader which keeps things simpler, or you can apply it to a grander scale on any OPFOR units.

Share this post


Link to post
Share on other sites

Thank you @ Jona33! Works great! Now trying to figure out what term Middle East Conflict mod uses for NVGs. As this code works great on base Opfor....but does not takeway NVGs from Opfor in MEC mod.

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  

×