Skip to content

MS-2000

Back To Armed Assault Scripts

Simulate a US Army issued MS-2000 strobe.

A script I’ve made to simulate a US Army issued piece of equipment; an MS-2000. It can usually be found mounted on the back of soldiers’ helmets to indicate to other personnel where their location is as well as to air units.

The script will add an action to your action menu via addAction and will allow you to turn on and off the script.

There’s currently no plans for me to update this script to make it Armed Assault 3 compatible but that may change.

Example: Strobe_Test.utes.tar

Armed Assault 2

init.sqf

strobeOn = player addAction ["MS-2000 On","strobeStart.sqf"];

strobeStart.sqf

/*
strobeStart.sqf [v1.1]
By Semedar (Villa, Victor D.)

"NVG_TargetC": Independent AI will attack this.
"NVG_TargetW": West AI will attack this.
"NVG_TargetE": East AI will attack this.

v1.1 Change Log
Added: Auto-shutoff when player enters vehicle.
Added: Respawn compatible
*/

if (isDedicated) exitWith {};

_strobeRespawnAdd = player addMPEventHandler ["MPRespawn", {
	strobe = false;
	player removeAction strobeOff;
	player removeAction strobeOn;
	strobeOn = player addAction [("<t color=""#FFFFFF"">" + ("MS-2000 On") +"</t>"), "Scripts\Player\Strobe\strobeStart.sqf",[],0,false,true,"",""];
}];

player removeAction strobeOn;

strobeOff = player addAction [("<t color=""#FF003F"">" + ("MS-2000 Off") +"</t>"), "Scripts\Player\Strobe\strobeStop.sqf",[],0,false,true,"",""];

strobe = true;

while { strobe } do {

	_irstrobe = "NVG_TargetC" createVehicle getpos player;
	_irstrobe attachTo [player,[0,0,0.2],"neck"];
	Sleep 0.8;
	detach _irstrobe;
	deleteVehicle _irstrobe;
	Sleep 0.1;

	// Checks If Player Is In Vehicle
	if (vehicle player != player) then {

		strobe = false;
		player removeAction strobeOff;
		strobeOn = player addAction [("<t color=""#FFFFFF"">" + ("MS-2000 On") +"</t>"), "Scripts\Player\Strobe\strobeStart.sqf",[],0,false,true,"",""];

	};

};

// Removes When Killed
WaitUntil{not isNull player};
player addEventHandler ["killed", {

	strobe = false;
	player removeAction strobeOff;
	player removeAction strobeOn;

}];

// Removes Respawn Event Handler
_strobeRespawnAdd = player removeMPEventHandler ["MPRespawn"];

strobeStop.sqf

/*
strobeStart.sqf [v1.1]
By Semedar (Villa, Victor D.)

v1.1 Change Log
Added: Auto-shutoff when player enters vehicle.
Added: Respawn compatible
*/

player removeAction strobeOff;
strobeOn = player addAction [("<t color=""#FFFFFF"">" + ("MS-2000 On") +"</t>"), "Scripts\Player\Strobe\strobeStart.sqf",[],0,false,true,"",""];
strobe = false;
detach _irstrobe;
_irstrobe setPosATL [-10000,-10000,100000];
deleteVehicle _irstrobe;

Opus@Monotonía | © Victor D. Villa, All rights reserved.