Jump to content
Sign in to follow this  
meatball

Scripting Parameter / Game Options

Recommended Posts

Have a few thoughts that players have given me and trying to figure out if there are some easy ways to handle them through scripting and want to solicit some ideas.

1) NVG's - Selectable parameter to completely remove/disable all NVG's from players and AI.

2) Orienteering - Selectable parameter to remove all GPS' as well as the marker that show the players location on the map. I know the map marker removal is built in if you choose 'veteran' skill level, but I'd like to be able to set that based on a parameter, regardless of the server skill setting.

Anyone written anything to do something similar?

Share this post


Link to post
Share on other sites

Something like this to get you started?

description.ext

class Params
{

      class NVGS
      {
       //param 0
       title = "Night Vision:";
       values[] = {0,1};
       texts[] = {"OFF","ON"};
       default = 1;
      }; 

};

script.sqf

if (paramsArray select 0 == 0) then {
{
	_x removeWeapon "NVGoggles";
} forEach allUnits;
};

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  

×