Results 1 to 2 of 2

Thread: Spawned Helicopter keeps crashing....

  1. #1

    Spawned Helicopter keeps crashing....

    Okay, so i have a script that"s set up to just spawn a simple helicopter already in flight, it does this, however the copter just goes nose down and crashes.
    I have it trying to follow waypoints as well.
    Tell me what I'm doing wrong, i want to learn this scripting stuff.


    PHP Code:
    EVAC createGroup east
    Pilot01 EVAC createUnit ["RU_Soldier_Pilot"position helospawn01, [], 0"form"];
    EVAC01 createVehicle ["Mi17_rockets_RU"position  helospawn01, [], 0"FLY"];
    EVAC01 lock false
    Pilot01 moveindriver EVAC01;
    Pilot01 Moveinpilot EVAC01;
    Pilot01 domove (position Land01);
    EVACRoute01_1 EVAC addWaypoint [LAND01,0];
    EVACRoute01_1 setWaypointType "Land";
    EVACROUTE01_1 setWaypointSpeed "FULL";
    Pilot01 flyInHeight 150;
    sleep 120;
    EVACroute01_2 Pilot01 addWaypoint [EXIT01,0];
    EVACRoute01_2 setWaypointType "MOVE";
    EVACROUTE01_1 setWaypointSpeed "FULL"
    One day there maybe peace, but there will always be another war....

  2. #2
    Sergeant Major SNKMAN's Avatar
    Join Date
    Aug 29 2006
    Location
    Germany ( Lake Constance )
    Posts
    1,616
    Code:
    Pilot01 Moveinpilot EVAC01;
    Moveinpilot is not a available command.

    Also you are using a lot of global variables. Don't know if it should be like this.

    This looks good to me:
    Code:
    _EVAC = createGroup east; 
    _Pilot01 = _EVAC createUnit ["RU_Soldier_Pilot", position helospawn01, [], 0, "form"];
    _EVAC01 = createVehicle ["Mi17_rockets_RU", position  helospawn01, [], 0, "FLY"];
    _EVAC01 lock false; 
    _Pilot01 moveindriver _EVAC01;
    _Pilot01 domove (position Land01);
    EVACRoute01_1 = _EVAC addWaypoint [LAND01,0];
    EVACRoute01_1 setWaypointType "Land";
    EVACROUTE01_1 setWaypointSpeed "FULL";
    _Pilot01 flyInHeight 150;
    sleep 120;
    EVACroute01_2 = _Pilot01 addWaypoint [EXIT01,0];
    EVACRoute01_2 setWaypointType "MOVE";
    EVACROUTE01_1 setWaypointSpeed "FULL";

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •