安裝 Steam
登入
|
語言
簡體中文
日本語(日文)
한국어(韓文)
ไทย(泰文)
Български(保加利亞文)
Čeština(捷克文)
Dansk(丹麥文)
Deutsch(德文)
English(英文)
Español - España(西班牙文 - 西班牙)
Español - Latinoamérica(西班牙文 - 拉丁美洲)
Ελληνικά(希臘文)
Français(法文)
Italiano(義大利文)
Bahasa Indonesia(印尼語)
Magyar(匈牙利文)
Nederlands(荷蘭文)
Norsk(挪威文)
Polski(波蘭文)
Português(葡萄牙文 - 葡萄牙)
Português - Brasil(葡萄牙文 - 巴西)
Română(羅馬尼亞文)
Русский(俄文)
Suomi(芬蘭文)
Svenska(瑞典文)
Türkçe(土耳其文)
tiếng Việt(越南文)
Українська(烏克蘭文)
回報翻譯問題
This is my old function to assist gunner take machine gun when gunner is dead.
Via some effort you can make FSM or something of your choice to suit your needs.
fnc_Replace_MG =
{
/*
needs to be spawned becaous use of while and sleep (scheluded environment)
waitUntil {!alive Machinegunner};
if !(alive MachinegunnerAssistant) exitWith {};
nul = [Machinegunner, MachinegunnerAssistant] spawn fnc_Replace_MG;
*/
private ["_oldGunner", "_newGunner", "_weaponHolders", "_WeaponHolder", "_weapons", "_magazines"];
_oldGunner = _This select 0;
_newGunner = _This select 1;
_weaponHolders = nearestObjects [_oldGunner,["WeaponHolderSimulated"],5];
_WeaponHolder = _weaponHolders select 0;
_weapons = weaponCargo _WeaponHolder;
_magazines = Magazines _oldGunner;
//hint format ["Fallen gunner: %1\nNew Gunner: %2\nWeapon: %3\nMagazines: %4", _oldGunner, _newGunner, _weapons, _magazines];
while {_newGunner distance _oldGunner > 3} do
{
_newGunner doMove getPos _oldGunner;
sleep 10;
};
//I dont remember which one works best
_newGunner action ["TakeWeapon", _WeaponHolder, (_weapons select 0)];
{_newGunner action ["TakeWeapon", _oldGunner, _x];} forEach weapons _oldGunner;
{_newGunner action ["TakeMagazine", __oldGunner, _x];} forEach magazines _oldGunner;
//may need some editing but you probly know the rest
};
:)
As for AI to decide ideas
Why?
A) AI has now weapon -> go for function to search any weapon.
B) Squad has no spesific weapon [ units _Group findIf {(weapon _x) isEqualTo 'WantedWeapon'} == -1); ] -> go for function to search spesific weapon in range,
When?
A) no combat and choises around
B) Urgent need (No AT and engaging tanks
Who command the AI?
Squad leader virtualy via scripts and if player is squad leader maybe use limited functions.
Go/No Go.
Measure distances, think current loadout. Does unit have enough full magazines (or simplifiied just could count AI magazines)