Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
_grp = group _unit;
_PositionArray = [Ps_0,Ps_1,Ps_2,Ps_3];
_animarray = ["ARMA_AlternativeRunLowered","ARMA_AlternativeRun","ARMA_AlternativeRun_WW2Style"];
_grp setbehaviour "CARELESS";
_anim = selectrandom _animarray;
_unit playmovenow _anim;
{
_x disableAI "AUTOTARGET";
_x disableAI "AUTOCOMBAT";
_MovePos = getposATL (_PositionArray#_foreachindex);
_x domove _MovePos;
[_x,_MovePos] spawn
{
params ["_Unit","_MovePos"];
waituntil {_Unit distance2D _MovePos < 1};
_unit disableAI "PATH";
_unit enableAI "AUTOTARGET";
_unit enableAI "AUTOCOMBAT";
_unit setBehaviour "AWARE";
_unit playmovenow "AmovPercMstpSrasWrflDnon";
_unit setunitpos "UP";
}
} foreach (units _grp);
exit;
This is a simple script I've made to allow the AI to use the animations; when you're making a mission, just use this script to make the AI run to a specific location. Use your imagination and have fun.
(I was also thinking about incorporating a similar script into an edit to a popular FSM like LAMBS or DCO, but that requires knowing someone else's code which tends to mess with my head.)