Page MenuHomeFeedback Tracker

BIS_fnc_SupplyDrop not compatible with Arma 3
New, WishlistPublic

Description

This function may be deprecated and replaced by editor modules.
It would be nice to have a scripted option instead of having hte module have to be player controlled.

The function is using Arma 2 class names for ammo crates and parachutes

Details

Legacy ID
2435312992
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Helicopter names in editor Helo1
set waypoints and put nul = [helo1,"reammobox"] spawn bis_fnc_supplydrop in act.

Error on rpt file:
Cannot create non-ai vehicle USBasicAmmunitionBox,
Cannot create non-ai vehicle ParachuteMediumWest,
Error in expression <t["DROP_ side %1 para %2 size %3",_side,_para, _paraSize];

_cargoRelPos = [0>

  Error position: <_para, _paraSize];

_cargoRelPos = [0>

Error Undefined variable in expression: _para

File A3\functions_f\systems\fn_supplydrop.sqf, line 104

Additional Information

Section that needs class names changed.

if (_classNameToDrop == "reammobox") then
{

_classNameToDrop = "USBasicAmmunitionBox";
if ((side _veh) == east) then {_classNameToDrop = "RUBasicAmmunitionBox"}; //RULaunchersBox //RUOrdnanceBox //RUBasicWeaponsBox //RUSpecialWeaponsBox //RUVehicleBox
if ((side _veh) == resistance) then {_classNameToDrop = "GuerillaCacheBox"}; //SpecialWeaponsBox

};

if (_classNameToDrop == "land") then
{
_paraSize = 2; //big chute

_classNameToDrop = "HMMWV_M2"; HMMWV
if ((side _veh) == east) then {_classNameToDrop = "UAZ_MG_INS"};
RULaunchersBox RUOrdnanceBox RUBasicWeaponsBox RUSpecialWeaponsBox RUVehicleBox
if ((side _veh) == resistance) then {_classNameToDrop = "UAZ_MG_INS"}; //SpecialWeaponsBox
};

_paraName = "";
switch (_paraSize) do
{

_side = side _veh;
if (!(_side in ["East","West"])) then {_side = "West";};
	case 0: {_paraName = format["Parachute%1",_side],;}; //ParachuteMediumEast or ParachuteMediumWest not "FLY" (that spawns 150 m above ground) }; 
	case 1: {_paraName = format["ParachuteMedium%1",_side];}; //ParachuteMediumEast or ParachuteMediumWest not "FLY" (that spawns 150 m above ground) }; 
	case 2: {_paraName = format["ParachuteBig%1",_side];};

Event Timeline

KevsnoTrev edited Additional Information. (Show Details)
KevsnoTrev set Category to Scripting.
KevsnoTrev set Reproducibility to Always.
KevsnoTrev set Severity to None.
KevsnoTrev set Resolution to Open.
KevsnoTrev set Legacy ID to 2435312992.May 7 2016, 6:07 PM