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
[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).