This script will spawn a cloud of mines around the player, this is a lot of fun to deal with.
_source = eyepos player; _distance = 35; for "_i" from 1 to 1000 do { _veh = createVehicle ["APERSMineDispenser_Mine_Ammo_Scripted", _source, [], 0, "CAN_COLLIDE"]; _pos = _source vectorAdd (vectorNormalized [(random 2)-1,(random 2)-1,(random 2)-1] vectorMultiply _distance); _veh setposasl _pos; }; |
Delete the bullets fired from your rifle and then replace them with a GBU. This is a very destructive script indeed.
player addEventHandler ["Fired", { params ["_unit", "_weapon", "_muzzle", "_mode", "_ammo", "_magazine", "_projectile", "_gunner"]; if (!local _unit) exitWith {}; (_this select 0) setvehicleammo 1; private _position = getPosWorld _projectile; private _dirAndUp = [vectorDir _projectile, vectorUp _projectile]; private _velocity = velocity _projectile; deleteVehicle _projectile; _projectile = "Bomb_04_F" createVehicle [0,0,0]; _projectile setPosWorld _position; _projectile setVectorDirAndUp _dirAndUp; _projectile setVelocityModelSpace [0, 990, 0]; [_projectile, [_unit, _gunner]] remoteExec ["setShotParents", 2]; }]; |
Constantly bomb a certain location with 155mm artillery shells. This is a lot of fun.
[[14642.2,16752.9,0],"Sh_155mm_AMOS",300,6400,10,nil, 32,4900, 150] spawn BIS_fnc_fireSupportVirtual; |
Another example. This is using the position of an object to drop shells on.
[getPos gun2,"Sh_155mm_AMOS",300,6400,10,nil, 32,4900, 150] spawn BIS_fnc_fireSupportVirtual; |
These examples should be a lot of fun to play with. How you use them is up to you…