PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : setWaypointHousePosition Probleme in arma 3


tartar
16.09.2015, 21:15
Kann mir einer Helfen usw. möchte ich Ki Wegpunkte geben z.b. wp 1 dann wp 2 und wp 3 anschließend sollen in einen Haus gehen und wider raus um den nächsten Wegpunkt zu machen.


if (isServer) then
{
waituntil { sleep 5;{_x distance [8385.5,5747.54,0] < 800} count playableUnits > 0 };
_spawn = _this select 0;
_kopf =
[
"H_Shemag_khk",
"H_Shemag_olive"

] call BIS_fnc_selectRandom;


_units =
[
["rhs_vdv_mflora_sergeant","rhs_vdv_mflora_machinegunner","rhs_vdv_mflora_grenadier_rpg","rhs_vdv_mflora_LAT","rhs_vdv_mflora_aa","rhs_vdv_mflora_medic"],
["rhs_vdv_mflora_sergeant","rhs_vdv_mflora_machinegunner","rhs_vdv_mflora_grenadier_rpg","rhs_vdv_mflora_strelok_rpg_assist","rhs_vdv_mflora_efreitor","rhs_vdv_mflora_marksman"],
["rhs_msv_officer_armored","rhs_msv_at","rhs_msv_machinegunner","rhs_msv_grenadier","rhs_msv_aa","rhs_msv_medic"],
["rhs_msv_officer_armored","rhs_msv_at","rhs_msv_machinegunner","rhs_msv_LAT","rhs_msv_engineer","Russ_MSV_Sniper"]
] call BIS_fnc_selectRandom;

_grp = [ _spawn, EAST, _units, [], [],[0.7,0.8]] call BIS_fnc_spawnGroup;
sleep 0.3;
_grp setFormation "STAG COLUMN";
{

_x addHeadgear _kopf;

} forEach units _grp;
_wp =_grp addWaypoint [[8465.48,5763.64,0], 0];
_wp setWaypointtype "MOVE";
_wp setWaypointSpeed "LIMITED";
_wp setWaypointBehaviour "SAFE";
_wp2 =_grp addWaypoint [[8557.82,5765.73,0], 0];
_wp3 =_grp addWaypoint [[8586.63,5772.11,0], 0];

_wp3 setWaypointtype "CYCLE";

//(units _grp) doMove ([10088.8,6036.18,0]);


};