Forum Jump :

Author Message


Posts: 134
Rank:


Level: Member

Country: us
Location: Censored by Chuck Norris
Occupation: Why do you want to know? Stalker.....
Age: 115
In-game name: FuNKo1

 
#1 Posted at 2011-11-22 04:11        
     
hello, this script is really starting to piss me off. I added the waypoint thing, it didn't work, so I commented it out. Now when I run it the pilot doesnt spawn and the plane crashes! *CRAZY* >-o

here is the script:
_pos = getpos target;



sleep 2;

_markerstr = createMarker["",_pos];
_markerstr setMarkerShape "ICON";
"Airdrop" setMarkerType "empty";


//_dropPosition = getpos _caller;
_dropPosX = _pos select 0;
_dropPosY = _pos select 1;
_dropPosZ = _pos select 2;
_spawn = [_dropPosX, _dropPosY - 1000, _dropPosZ + 500];

sleep 2;
_plane3Group = creategroup west;

plane2 = createVehicle ["C130J_US_EP1", _spawn, [], 0, "FLY"];

_pilot = _plane3Group createUnit ["US_Soldier_Pilot_ep1", _spawn, [], 0, "NONE"];
_pilot assignAsDriver plane2;
_pilot moveindriver plane2;
_pilot flyinheight 80;




driver(plane2) action ["gear_up", plane2];
_pilot setBehaviour "CARELESS";
plane2 lockdriver true;
plane2 setcaptive true;
//_wp = _plane3group addWaypoint [_pos, 0, 0];
//[_plane3group, 0] setWaypointType "MOVE";
//[_plane3group, 0] setWaypointSpeed "LIMITED";
//[_plane3group, 0] setWaypointcompletionradius 50;
//_plane3group setcurrentwaypoint [_plane3group, 0];
hint "plane coming";
_pilot move _pos;
plane2 move _pos;
Waituntil {unitReady plane2};
hint "plane dropping cargo";
//Do drop
_droppos = _position plane2;
sleep 3;
_para = createVehicle ["ParachuteMediumWest", _droppos, [], 0, "FLY"];
_para setpos _droppos;
sleep 1;



{{deleteVehicle _x} foreach crew _x;}foreach units plane2;
deleteVehicle plane2;
deleteMarker "airdrop";
sleep 5;
deleteVehicle plane3;

Help please!

I Can't Think of a Creative Signature Right Now...

Author Message


Posts: 134
Rank:


Level: Member

Country: us
Location: Censored by Chuck Norris
Occupation: Why do you want to know? Stalker.....
Age: 115
In-game name: FuNKo1

 
#2 Posted at 2011-11-23 16:28        
     
ok it seems to be working now. I have no idea what i did to it. hey fox you can delete this post if you want.

I Can't Think of a Creative Signature Right Now...