Jump to content
Sign in to follow this  
demonized

static bags assembled alone [cheat]

Recommended Posts

Assemble static bags alone v 1[CHEAT]

This came from a question asked in forums, did not really search for if there were already something like this already present.

If you want to be able to assemble static bag weapons without the hassle of having another player or unit to carry the tripod bag (total 2 units), then place this in unit initline in editor or save it to a script and replace the top this with _unitname.

Works for any vanilla Arma 2 static bag weapons.

_null = this spawn {

_typeStatics = [
"SPG9_TK_INS_Bag_EP1","SPG9_TK_GUE_Bag_EP1","TOW_TriPod_US_Bag_EP1","Metis_TK_Bag_EP1","2b14_82mm_TK_INS_Bag_EP1","2b14_82mm_TK_GUE_Bag_EP1",
"2b14_82mm_TK_Bag_EP1","M252_US_Bag_EP1","AGS_UN_Bag_EP1","AGS_TK_INS_Bag_EP1","AGS_TK_GUE_Bag_EP1","AGS_TK_Bag_EP1","MK19_TriPod_US_Bag_EP1",
"KORD_UN_Bag_EP1","KORD_TK_Bag_EP1","KORD_high_UN_Bag_EP1","KORD_high_TK_Bag_EP1","DSHkM_Mini_TriPod_TK_INS_Bag_EP1","DSHkM_Mini_TriPod_TK_GUE_Bag_EP1",
"DSHKM_TK_INS_Bag_EP1","DSHKM_TK_GUE_Bag_EP1","M2HD_mini_TriPod_US_Bag_EP1","M2StaticMG_US_Bag_EP1"];

while {alive _this} do {
	waitUntil {!isNull (unitBackpack _this)};
	_ruck = (typeOf (unitBackpack _this));
	if (_ruck in _typeStatics) then {
		waitUntil {isNull (unitBackpack _this)};
		_orgPos = (getPos _this);
		_tripod = "Tripod_Bag";
		_this addBackpack _tripod;
		waitUntil {isNull (unitBackpack _this)};
		waitUntil {!isNull (unitBackpack _this)};
		if ((typeOf (unitBackpack _this)) in _typeStatics) then {
			_pod = nearestObject [_this, "Tripod_Bag"];
			if (!isNull _pod AND (_this distance _orgPos) < 5) then {deleteVehicle _pod};
		};
	} else {
		waitUntil {isNull (unitBackpack _this) OR (typeOf (unitBackpack _this)) != _ruck};
	};
};
};

Pick up any static type bag, go somewhere, drop the static bag, you get cheat tripod on your body, look at static bag on ground, choose assemble, now when done choose unassemble, pick up the static again, "NOT THE TRIPOD" then tripod is deleted and you can go somewhere else and repeat the procedure.

tested and working SP editor.

Simple Demo mission with player, 4 static bags around ready to test.

Edited by Demonized
added simple demo mission.

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  

×