Das ist mit einem Skript möglich!
In addAction kannst du bei "arguments" ein Array mit beliebig vielen Parametern angeben. So ist es möglich, dass gleiche Skript mit verschiedenen Einstellungen aufzurufen. So kannst du dort z.B. die Waffennamen anführen, mit welchen du ausrüsten willst.
z.B.
[ ["Waffenname","Magazinname",Anzahl der Magazine],["Waffenname","Magazinname",Anzahl der Magazine], ....]
Im Skript dann herausholen mit
_Bewaffnung_1 = _this select 0;
_Bewaffnung-2 = _this select 1;
...
...
_NameWaffe_1 = _Bewaffnung_1 select 0;
_NameMagazin_1 = _Bewaffnung_1 select 1;
_MagazinAnzahl_1 = _Bewaffnung_1 select 2;
_NameWaffe_2 = _Bewaffnung_2 select 0;
_NameMagazin_2 = _Bewaffnung_2 select 1;
_MagazinAnzahl_2 = _Bewaffnung_2 select 2;
...
...
Syntax: ActionNumber = Unit addAction ["title", "filename", [arguments], priority, showWindow, hideOnUse, "shortcut"]
Parameters:Unit: Person or Vehicle
title: String - The action name which is displayed in the action menu.
filename: String - Path to the script that is called when the action is activated. Relative to the mission folder.
arguments: Anything - Arguments to pass to the script (will be (_this select 3) for the script)
priority: Number - Priority value of the action. Actions will be arranged descending according to this. Every game action has a preset priority value. Value can be negative. Actions with same values will be arranged in order which they were made, newest at the bottom.
showWindow: Boolean - If set True; players see "Titletext". At mid-lower screen, as they approach the object. False turns it off.
hideOnUse: Boolean - If set to true, it will hide the action menu after selecting that action. If set to false, it will leave the action menu open and visible after selecting that action, leaving the same action highlighted, for the purpose of allowing you to reselect that same action quickly, or to select another action.
|