Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- span class="re5"> Activation:
- Blufor
- Activation
- Type:Present
- Condition:
- this && ((vehicle player in thisList) && {vehicle player iskindof "Plane"})
- On Activation:
- [thisTrigger] spawn {
- _i=10000;
- params ["_trigger"];
- private _pos = p1 modelToWorld [0,2,1.6];
- private _missile = createVehicle ["vn_sa2_ammo", [0,0,0], [], 0, "none"];
- _missile enableSimulation true;
- _missile setPosASLW _pos;
- _missile setVectorDirAndUp [[0,0,1], [1,0,0]];
- sleep 20;
- if (( getposatl vehicle player) select 2 > 500) then{
- for "_i" from 0 to 4 do{
- if (( getposatl vehicle player) select 2 > 500) then{
- private _oldPos = getPosATL vehicle player;
- private _newPos = _oldPos vectorAdd [0,0,600];
- private _position = vehicle player getRelPos [900,200];
- _position set [2, _newpos];
- _missileDir = _position vectorFromTo getPosATL vehicle player;
- _missile = createVehicle ["ammo_Missile_rim162", _position , [], 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{};
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement