安装 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(越南语)
Українська(乌克兰语)
报告翻译问题
[units g1] spawn Ibr_fn_gogogo_combat_mode;
Then make second WP at position your wish and they will move there in gogogo mode.
To exit gogogo mode, change group's combat mode or beheviour.
Following steps are what I did:
1.Placing a 3 men group and select all of them given a name "g1"
2.Placing a move WP with scripts in its OnActivation:
Ibr_fn_gogogo_combat_mode =
{
params ["_units"];
if (count _units == 0) exitWith {};
_targets = (leader (group (_units select 0))) targets [true, 1000, [], 0];
{
(group (_units select 0)) forgetTarget _x;
} forEach _targets;
{
[_x] spawn Ibr_fn_dasableAI_in_gogogo_mode;
} forEach _units;
};
Ibr_fn_dasableAI_in_gogogo_mode =
{
params ["_unit"];
{
_unit disableAI _x;
} forEach ["AUTOTARGET","AUTOCOMBAT","SUPPRESSION","WEAPONAIM"];
_speedCoef = getAnimSpeedCoef _unit;
_unit setSpeedMode "FULL";
_mode = "BLUE";
_behaviour = "AWARE";
_unit setUnitCombatMode _mode;
_unit setCombatBehaviour _behaviour;
_unit setAnimSpeedCoef _speedCoef + IBR_ACC_ANIM_SPEED_COEF;
waitUntil
{
sleep 0.5;
!(unitCombatMode _unit in [_mode])
||
!(combatBehaviour _unit in [_behaviour]);
};
{
_unit enableAI _x;
} forEach ["AUTOTARGET","AUTOCOMBAT","SUPPRESSION","WEAPONAIM"];
if (unitCombatMode _unit in [_mode]) then
{
_unit setUnitCombatMode "YELLOW";
};
_unit setAnimSpeedCoef _speedCoef;
};
[units g1] spawn Ibr_fn_gogogo_combat_mode;
3.Placing the other move WP
Where I did wrong? Thank you so much.
"TARGET"
"FSM"
"CHECKVISIBLE"
For example:
["AUTOTARGET","AUTOCOMBAT","SUPPRESSION","WEAPONAIM","TARGET"]
waitUntil
{
sleep 0.1;
_targets = _unit targets [true];
{_unit forgetTarget _x} forEach _targets;
!(unitCombatMode _unit in [_mode])
||
!(combatBehaviour _unit in [_behaviour]);
};
sleep 0.1;
in waitUntil block and also add to it:
_unit doTarget objNull;
Exit it by changing the whole group combat mode (to green, white, yellow or red) or behaviour (to safe, combat or stealth).