HX3 Foren  

  HX3 Foren > Games > Iron Front: Liberation 1944 > Editing & Scripting

Antwort
 
Themen-Optionen Ansicht
Alt 02.10.2012, 21:25   #1 (permalink)
50 Beiträge
 
Registriert seit: 20.02.2009
Ort: Germany West
Beiträge: 61
Icon10 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";

Zitat:

Krieg ist die Forsetzung der Diplomatie, mit anderen Mitteln.

Angehängte Dateien
Dateityp: txt AmmoboxLoad.txt (1,7 KB, 293x aufgerufen)
rocker ist offline   Mit Zitat antworten
Alt 29.10.2012, 22:00   #2 (permalink)
50 Beiträge
 
Registriert seit: 20.02.2009
Ort: Germany West
Beiträge: 61
Icon10 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;
};
rocker ist offline   Mit Zitat antworten
Antwort


Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Ammobox Script problem G36Firestorm Editing & Scripting 11 18.07.2011 15:04


Kontakt - HX3.de - Archiv - Nach oben

Angetrieben durch vBulletin, Entwicklung von Philipp Dörner & Tobias



SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119