ArmA 3 Alpha: TL_fnc_removeGear, a script that allows custom gear removal from any unit


April 1st, 2013

Overview

This function allows for quick, custom gear removal from any unit in ArmA 3.

Note: This function relies on another script that I have written, called TL_fnc_getParameter. TL_fnc_getParameter is a lightweight function that handles required and optional parameters passed to a script.

Read more about TL_fnc_getParameter and how to implement it

Basic Usage

TL_fnc_removeGear requires a unit to be passed as the first argument.

By default, with only a unit provided, the script will remove a unit’s weapons, headgear, uniform, vest, and night vision goggles. Leaving the map, radio, compass, and watch in the unit’s inventory.

Custom Gear Removal

If you don’t like what the function removes by default, you can pick and choose what to remove. The function has 9 options to customize. True means it will be removed, and false means it will be kept.

The example below will remove everything from the player.

TL_fnc_removeGear.sqf

Please note that TL_fnc_removeGear relies on another script that I have written, called TL_fnc_getParameter. TL_fnc_getParameter is a lightweight function that handles required and optional parameters passed to a script.

Changelog

April 5, 2013 – Version 1.2

  • Upgraded to use TL_fnc_getParameter v1.2
  • Function can now be called with either: player call TL_fnc_removeGear OR [player] call TL_fnc_removeGear
Share this post