Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {null=[]spawn{
- if(((vehicle player iskindof "Plane")||(vehicle player iskindof "Helicopter")) && (side player == west))then{
- _i=10000;
- if (( getposatl vehicle player) select 2 > 200) then{
- private _Z=( getposatl vehicle player) select 2;
- for "_i" from 0 to 4 do{
- if (( getposatl vehicle player) select 2 > 200) then{
- private _position = vehicle player getRelPos [900,180];
- private _newPos =_position vectorAdd [0,0,_Z+1000];
- _missileDir = _newpos vectorFromTo getPosATL vehicle player;
- _missile = createVehicle ["ammo_Missile_rim162", _newpos, [], 0, "CAN_COLLIDE"];
- _missile setVectorDirAndUp [_missileDir, [0,0,-1]];
- [_missile, vehicle player] spawn {
- params ["_missile", "_tgt"];
- sleep 0.1;
- _missile setMissileTarget _tgt;
- };
- sleep 4;
- }else{break;};
- };
- sleep 7;
- }else{};
- }
- }; }forEach playableUnits;
- deletevehicle p1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement