User Tools

Site Tools


arma2:editor_modules:artillery_examples

Artillery Examples

Artillery module examples

Magazine loads, run these on init line or init.sqf etc.

MLRS

this call {_m270mags = magazines _this; {_this removeMagazine _x} forEach _m270mags; _this addMagazine "ARTY_12Rnd_227mmHE_M270"};

M119

this call {_m119mags = magazines _this; {_this removeMagazine _x} forEach _m119mags; _this addMagazine "ARTY_30Rnd_105mmHE_M119"};

M252

this call {_m252mags = magazines _this; {_this removeMagazine _x} forEach _m252mags; _this addMagazine "ARTY_8Rnd_81mmHE_M252"};

D30

this call {_d30mags = magazines _this; {_this removeMagazine _x} forEach _d30mags; _this addMagazine "ARTY_30Rnd_122mmHE_D30"};

Podnos

this call {_podnosmags = magazines _this; {_this removeMagazine _x} forEach _podnosmags; _this addMagazine "ARTY_8Rnd_82mmHE_2B14"};

BM21

this call {_bm21mags = magazines _this; {_this removeMagazine _x} forEach _bm21mags; _this addMagazine "ARTY_40Rnd_120mmHE_BM21"};

Calling Arty from script

// _myBattery is the name of the Arty logic that's synchronized to the actual arty group leader
// _heTemplate is an array
/*
_targetPos is 3D, meaning altitude too!
_targetPos = getPosASL _targetUnit;
*/
 
_heTemplate = ["IMMEDIATE", "HE", 0, 15];
[_myBattery, _targetPos, _heTemplate] call BIS_ARTY_F_ExecuteTemplateMission;

List of magazines names.

M119

ARTY_30Rnd_105mmHE_M119
ARTY_30Rnd_105mmILLUM_M119
ARTY_30Rnd_105mmLASER_M119
ARTY_30Rnd_105mmSADARM_M119
ARTY_30Rnd_105mmSMOKE_M119
ARTY_30Rnd_105mmWP_M119

D30

ARTY_30Rnd_122mmHE_D30
ARTY_30Rnd_122mmILLUM_D30
ARTY_30Rnd_122mmLASER_D30
ARTY_30Rnd_122mmSADARM_D30
ARTY_30Rnd_122mmSMOKE_D30
ARTY_30Rnd_122mmWP_D30

M252

ARTY_8Rnd_81mmHE_M252
ARTY_8Rnd_81mmILLUM_M252
ARTY_8Rnd_81mmWP_M252

Podnos

ARTY_8Rnd_82mmHE_2B14
ARTY_8Rnd_82mmILLUM_2B14
ARTY_8Rnd_82mmWP_2B14

M270

ARTY_12Rnd_227mmHE_M270

BM21

ARTY_40Rnd_120mmHE_BM21
arma2/editor_modules/artillery_examples.txt · Last modified: 2009-09-16 16:02 by snakeman