HX3 Foren

HX3 Foren (https://hx3.de/)
-   Editing & Scripting (https://hx3.de/editing-scripting-187/)
-   -   Munitionskisten (https://hx3.de/editing-scripting-187/munitionskisten-24273/)

Hannibal1612 16.09.2014 22:11

Munitionskisten
 
Hallo Community,

ich bin neu hier und hoffe, dass ich im richtigen Unterordner bin, mit diesem Thema.
Ich habe mich hier angemeldet, da ich schon einige nützliche Dinge hier für meine eigenen Missionen gefunden habe.

Kann mir jemand erklären, warum die Munitionskisten bei Arma 3, dich ich so befüllt habe:

clearWeaponCargo this;
clearItemCargo this;
clearMagazineCargo this;
clearBackpackCargo this;
this addWeaponCargo ["arifle_MX_GL_F",5];
this addMagazineCargo ["30Rnd_65x39_caseless_mag",50];
this addMagazineCargo["1Rnd_HE_Grenade_shell",100];
this addWeaponCargo ["arifle_Katiba_F",5];
this addMagazineCargo ["30Rnd_65x39_caseless_green",50];
this addWeaponCargo ["arifle_MX_F",5];
this addWeaponCargo ["arifle_Mk20_F",5];
this addMagazineCargo ["30Rnd_556x45_Stanag",50];
this addWeaponCargo ["srifle_EBR_F",5];
this addMagazineCargo ["20Rnd_762x51_Mag",50]; this addWeaponCargo ["LMG_Mk200_F",5];
this addMagazineCargo ["200Rnd_65x39_cased_Box",50];

nicht für meine Mitspieler in einer MP Mission sichtbar sind. Lediglich ich sehe meine selbst erstellte Kiste in der MP Mission. Alle anderen sehen nur die Standardausrüstung dieser Kiste.
Ich verwende die [NATO] Nachschubkiste.

Vielen Dank im Voraus für eure Hilfe :)

Grollig 17.09.2014 02:34

Moin,

für Multiplayer (bzw. um den Inhalt eines Objektes für alle Spieler zu verändern) gibt es in diesem Fall gesonderte Befehle.

Versuch es mal mit:
Code:

clearWeaponCargoGlobal this;
clearItemCargoGlobal this;
clearMagazineCargoGlobal this;
clearBackpackCargoGlobal this;
this addWeaponCargoGlobal ["arifle_MX_GL_F",5];
this addMagazineCargoGlobal ["30Rnd_65x39_caseless_mag",50];
this addMagazineCargoGlobal ["1Rnd_HE_Grenade_shell",100];
this addWeaponCargoGlobal ["arifle_Katiba_F",5];
this addMagazineCargoGlobal ["30Rnd_65x39_caseless_green",50];
this addWeaponCargoGlobal ["arifle_MX_F",5];
this addWeaponCargoGlobal ["arifle_Mk20_F",5];
this addMagazineCargoGlobal ["30Rnd_556x45_Stanag",50];
this addWeaponCargoGlobal ["srifle_EBR_F",5];
this addMagazineCargoGlobal ["20Rnd_762x51_Mag",50];
this addWeaponCargoGlobal ["LMG_Mk200_F",5];
this addMagazineCargoGlobal ["200Rnd_65x39_cased_Box",50];

Eine Übersicht aller Arma3 Befehle (mit Erläuterungen und Beispielen) findest Du hier:

https://community.bistudio.com/wiki/...ommands_Arma_3

P.S.: Welche Munitionskiste Du für dieses Beispiel verwendest ist übrigens völlig egal, da Du ja ohnehin zuerst den ursprünglichen Inhalt löschst.

Hannibal1612 19.09.2014 11:57

Hallo Grollig,

vielen Dank, es hat super geklappt :daumen:


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:53 Uhr.

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