Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //On activation
- [thisTrigger] spawn {
- _i=100;
- params ["_trigger"];
- private _altitude=300;
- while {triggerActivated _trigger} do {
- if (( getposatl vehicle player) select 2 > _altitude) then{
- for "_i" from 0 to 4 do{
- if (( getposatl vehicle player) select 2 > _altitude) then{
- private _position = vehicle player getRelPos [900,200];
- _position set [2,10000];
- _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