Welcome to Tactical Gamer

User Tag List

Results 1 to 2 of 2
  1. #1
    Achievements:
    SocialRecommendation Second ClassVeteranTagger First Class10000 Experience Points

    LowSpeedHighDrag's Avatar

    Join Date
    Dec 2008
    Location
    UK (temp), Far East (probable), Middle East (if lucky)
    Posts
    4,051
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    AT4/RPG18 No ammo script

    Write this in the "Init.sqf"

    [] execVM "NoAmmoAT4.sqf"
    "NoAmmoAT4.sqf"
    [] spawn
    {
    while {true} do
    {
    while {currentWeapon player != "M136"} do {sleep 0.5;};

    player addMagazine "M136";
    _ehId = player addEventHandler ["fired", {[_this select 0, _this select 1] spawn {player removeMagazines "M136"; while {currentWeapon player == "M136" && isNull (findDisplay 106)} do {sleep 0.5;}; (_this select 0) removeWeapon (_this select 1);};}];

    while {currentWeapon player == "M136"} do {sleep 0.5;};

    player removeEventHandler ["fired", _ehId];
    if ("M136" in magazines player) then {player removeMagazines "M136";};
    };
    };

    [] spawn
    {
    while {true} do
    {
    while {currentWeapon player != "RPG18"} do {sleep 0.5;};

    player addMagazine "RPG18";
    _ehId = player addEventHandler ["fired", {[_this select 0, _this select 1] spawn {player removeMagazines "RPG18"; while {currentWeapon player == "RPG18" && isNull (findDisplay 106)} do {sleep 0.5;}; (_this select 0) removeWeapon (_this select 1);};}];

    while {currentWeapon player == "RPG18"} do {sleep 0.5;};

    player removeEventHandler ["fired", _ehId];
    if ("RPG18" in magazines player) then {player removeMagazines "RPG18";};
    };
    };
    Credits to Inkopetant (sp?)


    "Do not seek death. Death will find you. But seek the road which makes death a fulfillment." - Dag Hammarskjold

  2.  
  3. #2

    WarFairy's Avatar

    Join Date
    Feb 2011
    Location
    Kendallville IN
    Age
    28
    Posts
    534
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: AT4/RPG18 No ammo script

    I have this script modified to also make NLAWs disposable If you want then add it to the first

    Code:
    [] spawn
    {
    	while {true} do
    	{
    		while {currentWeapon player != "M136"} do {sleep 0.5;};
    		
    		player addMagazine "M136";
    		_ehId = player addEventHandler ["fired", {[_this select 0, _this select 1] spawn {player removeMagazines "M136"; while {currentWeapon player == "M136" && isNull (findDisplay 106)} do {sleep 0.5;}; (_this select 0) removeWeapon (_this select 1);};}];
    		
    		while {currentWeapon player == "M136"} do {sleep 0.5;};
    		
    		player removeEventHandler ["fired", _ehId];
    		if ("M136" in magazines player) then {player removeMagazines "M136";};
    	};
    };
    
    [] spawn
    {
    	while {true} do
    	{
    		while {currentWeapon player != "RPG18"} do {sleep 0.5;};
    		
    		player addMagazine "RPG18";
    		_ehId = player addEventHandler ["fired", {[_this select 0, _this select 1] spawn {player removeMagazines "RPG18"; while {currentWeapon player == "RPG18" && isNull (findDisplay 106)} do {sleep 0.5;}; (_this select 0) removeWeapon (_this select 1);};}];
    		
    		while {currentWeapon player == "RPG18"} do {sleep 0.5;};
    		
    		player removeEventHandler ["fired", _ehId];
    		if ("RPG18" in magazines player) then {player removeMagazines "RPG18";};
    	};
    };
    
    [] spawn
    {
    	while {true} do
    	{
    		while {currentWeapon player != "BAF_NLAW_Launcher"} do {sleep 0.5;};
    		
    		player addMagazine "NLAW";
    		_ehId = player addEventHandler ["fired", {[_this select 0, _this select 1] spawn {player removeMagazines "NLAW"; while {currentWeapon player == "BAF_NLAW_Launcher" && isNull (findDisplay 106)} do {sleep 0.5;}; (_this select 0) removeWeapon (_this select 1);};}];
    		
    		while {currentWeapon player == "BAF_NLAW_Launcher"} do {sleep 0.5;};
    		
    		player removeEventHandler ["fired", _ehId];
    		if ("NLAW" in magazines player) then {player removeMagazines "NLAW";};
    	};
    };

  4.  

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Back to top