02.10.2012, 21:25 | #1 (permalink) |
Registriert seit: 20.02.2009
Ort: Germany West
Beiträge: 61
|
Ammobox refill
Ich versuche für IronFront 44 einen Ammobox Filler zu erstellen. Ich habe dort die Waffen in mein Listing eingefügt. Aber leider werden diese nicht in meiner Ammobox gezeigt.
Was mache ich Falsch, oder bessergesagt was übersehe ich. Vielleicht kann mir jemand einen Tip geben was ich ändern muß . HTML-Code:
// IN INIT EINTRAGEN "res = [this] execVM "AmmoboxLoad.sqf" _ammobox = _this select 0; _waitrnd = 0; _waitrnd = ( 300 + round( random 600 ) ); clearWeaponCargo _ammobox; clearMagazineCargo _ammobox; _Rifles = [ [ "LIB_PPSh41_d", "LIB_PPSh41_m", [ "lib_35Rnd_762x25" ] ], [ "LIB_M9130", [ "lib_5Rnd_762x54" ] ], [ "LIB_DP28", [ "lib_47Rnd_762x54" ] ], [ "LIB_MP40", [ "LIB_32Rnd_9x19" ] ], [ "LIB_K98", [ "lib_5Rnd_792x57" ] ], [ "LIB_MP44", [ "lib_30_Rnd_792x33", ] ], [ "LIB_G43", [ "lib_10Rnd_792x57", "lib_5Rnd_792x57" ] ] ]; _SniperRifles = [ [ "LIB_K98ZF39", [ "5lib_5Rnd_792x57", ] ], [ "LIB_M9130PU" [ "lib_5Rnd_762x54" ] ] ]; _Pistols = [ [ "LIP_M1908", [ "lib_8Rnd_9x19" ] ], [ "LIB_TT33_", [ "lib_8Rnd_762x25" ] ] ]; _Launchers = [ [ "LIB_RPzB 88mm RPzB", [ "lib_1Rnd_RPzB" ] ] ]; _Misc = [ [ "LIB_Binocular_SU", [ "empty" ] ], [ "ItemRadio", [ "empty" ] ], [ "ItemCompas", "ItemMap", "LIB_w", [ "empty" ] ] ]; _weapons = []; _weapons = _Rifles + _SniperRifles + _Machineguns + _Misc + _Launchers; { { if !(_x == "empty")then { _ammobox addMagazineCargo [_x,10]; }; }foreach (_x select 2); _ammobox AddWeaponCargo [(_x select 1),10]; sleep 0.01; }foreach _weapons; _wait = 60 + _waitrnd; sleep _wait; _reWait = _time + 60; _ammobox setdammage 0; sleep 1.0; ammoboxtr = [ _ammobox ] execVM "AmmoRefill.sqf";
|
29.10.2012, 22:00 | #2 (permalink) |
Registriert seit: 20.02.2009
Ort: Germany West
Beiträge: 61
|
Ammobox fill
Habe es hinbekommen, nur Waffen keine Granaten oder anderes Equipment, wer mehr will mus das entsprechend erweitern.
Dem Sript müsst ihr den Namen russ_Ammobox.sqf geben, läuft super, hier das Script: ////////////////////////////////////////////////////////////////// // Function file for Iron Front Liberation 1944 // Created by: rocker // In Init Line Ammobox: _Handle = this execVM "russ_ammobox.sqf"; ////////////////////////////////////////////////////////////////// //................................ // Ammo Box UDSSR //................................ // Settings _amountWeapon = 20; _amountAmmo = 100; _refreshTime = 600; // refill every 5 minutes _this allowDamage false; // Loop forever while {true} do { // Clear box clearWeaponCargo _this; clearMagazineCargo _this; // Fill box // UDSSR Weapons _this addWeaponCargo ["LIB_PPSh41_d", _amountWeapon]; _this addWeaponCargo ["LIB_PPSh41_m", _amountWeapon]; _this addWeaponCargo ["LIB_M9130", _amountWeapon]; _this addWeaponCargo ["LIB_M9130PU", _amountWeapon]; _this addWeaponCargo ["LIB_DP28", _amountWeapon]; _this addWeaponCargo ["LIB_DT", _amountWeapon]; _this addWeaponCargo ["LIB_DT_OPTIC", _amountWeapon]; _this addWeaponCargo ["LIB_TT33", _amountWeapon]; _this addWeaponCargo ["LIB_FLARE_PISTOL", _amountWeapon]; _this addWeaponCargo ["LIB_RPzB", _amountWeapon]; _this addWeaponCargo ["LIB_PzFaust_30m", _amountWeapon]; _this addWeaponCargo ["LIB_SVT_40", _amountWeapon]; _this addWeaponCargo ["LIB_M1895", _amountWeapon]; //Ammo _this addMagazineCargo ["LIB_35Rnd_762x25", _amountAmmo]; _this addMagazineCargo ["LIB_71Rnd_762x25", _amountAmmo]; _this addMagazineCargo ["lib_5Rnd_762x54", _amountAmmo]; _this addMagazineCargo ["lib_8Rnd_762x25", _amountAmmo]; _this addMagazineCargo ["lib_63Rnd_762x54", _amountAmmo]; _this addMagazineCargo ["LIB_1Rnd_RPzB", _amountAmmo]; _this addMagazineCargo ["1Rnd_LIB_PzFaust_30m", _amountAmmo]; _this addMagazineCargo ["LIB_1Rnd_flare_yellow", _amountAmmo]; _this addMagazineCargo ["LIB_1Rnd_flare_green", _amountAmmo]; _this addMagazineCargo ["LIB_1Rnd_flare_red", _amountAmmo]; _this addMagazineCargo ["LIB_1Rnd_flare_white", _amountAmmo]; _this addMagazineCargo ["LIB_Ladung_Big_MINE_mag", _amountAmmo]; _this addMagazineCargo ["lib_47Rnd_762x54", _amountAmmo]; _this addMagazineCargo ["lib_10Rnd_762x54", _amountAmmo]; _this addMagazineCargo ["lib_7Rnd_762x38", _amountAmmo]; _this addMagazineCargo ["lib_pwm", _amountAmmo]; // Wait the duration of the timer sleep _refreshTime; }; |
Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Ammobox Script problem | G36Firestorm | Editing & Scripting | 11 | 18.07.2011 15:04 |