安装 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)