HX3 Foren

HX3 Foren (https://hx3.de/)
-   Editing & Scripting (https://hx3.de/editing-scripting-187/)
-   -   setWaypointHousePosition Probleme in arma 3 (https://hx3.de/editing-scripting-187/setwaypointhouseposition-probleme-arma-3-a-25035/)

tartar 16.09.2015 21:15

setWaypointHousePosition Probleme in arma 3
 
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.


Code:

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]);
       

        };



Alle Zeitangaben in WEZ +1. Es ist jetzt 15:15 Uhr.

Angetrieben durch vBulletin, Entwicklung von Philipp Dörner & Tobias


SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119