Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Here's a handy function I wrote that will change the side of the crew of a craft.
setCrewSide = {
params["_craft", "_side"];
if (side _craft == _side) exitWith {};
_aiUnits = units _craft;
_newGroup = createGroup [_side, true];
_aiUnits joinSilent grpNull;
_aiUnits joinSilent _newGroup;
};
So if you have a drone with the variable name uav, here's how you'd call the function to set the crew to WEST:
[uav, WEST] call setCrewSide;
player removeeventhandler["fired", FEH_playerAmmo];
FEH_playerAmmo = player addeventhandler ["fired", {(_this select 0) setvehicleammo 1}];