Jump to content

seragavlg

Member
  • Content Count

    9
  • Joined

  • Last visited

  • Medals

Posts posted by seragavlg


  1. GroupCAS1 = CreateGroup East;

    Helo1 = createVehicle ["CMA_Mi28_RUS", [(getpos player) select 0,(getpos player) select 1, 0], [], 3100, "FLY"];

    HeliPilot1 = GroupCAS1 createUnit ["RU_Soldier_Pilot", [0,0,1], [], 0, "CAN_COLLIDE"];

    HeliPilot1 moveInDriver Helo1;

    HeliPilot2 = GroupCAS1 createUnit ["RU_Soldier_Pilot", [0,0,1], [], 0, "CAN_COLLIDE"];

    HeliPilot2 moveInGunner Helo1;

    Helo1 FlyInHeight 200;

    Helo2 = createVehicle ["CMA_Mi28_RUS", [(getpos player) select 0,(getpos player) select 1, 0], [], 3150, "FLY"];

    Heli2Pilot1 = GroupCAS1 createUnit ["RU_Soldier_Pilot", [0,0,1], [], 0, "CAN_COLLIDE"];

    Heli2Pilot1 moveInDriver Helo2;

    Heli2Pilot2 = GroupCAS1 createUnit ["RU_Soldier_Pilot", [0,0,1], [], 0, "CAN_COLLIDE"];

    Heli2Pilot2 moveInGunner Helo2;

    Helo2 FlyInHeight 220;

    Helo3 = createVehicle ["CMA_Mi28_RUS", [(getpos player) select 0,(getpos player) select 1, 0], [], 3050, "FLY"];

    Heli3Pilot1 = GroupCAS1 createUnit ["RU_Soldier_Pilot", [0,0,1], [], 0, "CAN_COLLIDE"];

    Heli3Pilot1 moveInDriver Helo3;

    Heli3Pilot2 = GroupCAS1 createUnit ["RU_Soldier_Pilot", [0,0,1], [], 0, "CAN_COLLIDE"];

    Heli3Pilot2 moveInGunner Helo3;

    Helo3 FlyInHeight 180;

    wp1 = GroupCAS1 addwaypoint [position player, 0];

    wp1 setwaypointtype "SAD";

    wp1 setWaypointCompletionRadius 200;

    wp1 setWaypointBehaviour "COMBAT";

    wp1 setWaypointCombatMode "RED";

    wp1 setWaypointSpeed "FULL";

    Helo3 FlyInHeight 180;

    Helo2 FlyInHeight 220;

    Helo1 FlyInHeight 200;

    and this heli's don't flyight on this heights. Why?

    ---------- Post added at 04:18 PM ---------- Previous post was at 04:13 PM ----------

    while {(Alive Helo1)||(Alive Helo2)||(Alive Helo3)} do

    {

    wp1 = GroupCAS1 addwaypoint [position player, 0];

    wp1 setwaypointtype "SAD";

    wp1 setWaypointCompletionRadius 200;

    wp1 setWaypointBehaviour "COMBAT";

    wp1 setWaypointCombatMode "RED";

    wp1 setWaypointSpeed "FULL";

    Helo3 FlyInHeight 180;

    Helo2 FlyInHeight 220;

    Helo1 FlyInHeight 200;

    };

    and this is dont't work


  2. thx nuxil!!!

    All work.

    ---------- Post added at 07:03 PM ---------- Previous post was at 06:07 PM ----------

    hmm........

    unit6 = "FR_Rodriguez" createUnit [position player,group player,"this addEventHandler ['Fired',{(_this select 0) setvehicleammo 1}] ;", 1, "COLONEL"];

    unit6 setskill ["aimingAccuracy",1];

    unit6 setskill ["aimingShake",1];

    unit6 setskill ["aimingSpeed",1];

    unit6 setskill ["endurance",1];

    unit6 setskill ["spotDistance",1];

    unit6 setskill ["spotTime",1];

    unit6 setskill ["courage",1];

    unit6 setskill ["reloadSpeed",1];

    unit6 setskill ["commanding",1];

    unit6 setskill ["general",1];

    unit6 addEventHandler ["Killed",{[_this select 0,_this select 1,west] Spawn UnitKilled}];

    hint"ready for battle";

    after i need to remove both EH:

    unit6 removeAllEventHandlers "killed";

    unit6 removeAllEventHandlers "fired";

    Killed - removed, but fired???(after initialization this eh won't remove)


  3. offtopic:

    1.

    ArmA 2 : CONFIGS AND SCRIPTING (addons)

    Discussion on editing CPP's, SQS', SQF's and getting your work from O2 to Arma 2

    or

    ArmA 2 - MISSION EDITING & SCRIPTING

    For discussing the technical aspects of creating custom ArmA 2 missions as well as scripting.

    for my ques both of all

    2.

    unit6 addEventHandler ["Fired",{(_this select 0) setvehicleammo 1}]; not work(


  4. I create ai soldier during mission:

    unit6 = "FR_Rodriguez"createUnit [position player,group player];

    unit6 addEventHandler ["FiredNear",{(_this select 0) setvehicleammo 1}];

    hint"Test_1";

    or

    unit6 = "FR_Rodriguez"createUnit [position player,group player];

    unit6 addEventHandler ["Fired",{(_this select 0) setvehicleammo 1}];

    hint"Test_2";

    - and this evehthandler don't work((

    What i do wrong?

×