/TF146-scripts

Scripts used by the 8th Cavalry Regiment milsim group

Primary LanguageSQF

ArmA Scripts

These are custom scripts used by the Task Force 146 milsim group.

Scripts

customArsenal

Adds actions to an object to equip loadouts for different classes.

To use it, give the object a unique variable name (e.g., arsenal1) and then add this line to its init field:

_null = [YOUR_VARIABLE_NAME_HERE] execVM "customArsenal.sqf";

Requires a multiplayer environment for classes with whitelists.

personUnlocksDoor

Copy this script into the init field of an object with a single door and change 'Spy' to the unit role that should be allowed to unlock the door.

keyUnlocksDoor

Copy this script into the init field of an object with a single door. Requires 'Item_Keys' in the player's inventory to unlock the door.

crashHelicopter

Add this file to your mission folder and use:

_null = [this, helicopterVariable, "Name for action"] execVM "crashHelicopter.sqf"

to run the script. helicopterVariable should be the variable name for a helicopter that you spawn on the map. You can add this line multiple times for multiple helicopters- just be sure to use a unique helicopterVariable and action name.