|
发表于 2012-6-27 22:08:50
|
显示全部楼层
- //////////////////////////////////////////////////////////////////
- // Function file for Armed Assault
- // Created by: TODO: Author Name
- //////////////////////////////////////////////////////////////////
- // Use the following to activate the script.
- // nul=[center,size,howmany,delay] execVM "RndExpl.sqf"
- // or use
- // nul=[this,50,20,5]execVM "RndExpl.sqf" placed in a game logic Init for instant result.
- // ///////////////////////////////////////////////////////////////
- // 1. Center place an object ot gamelogic where you want the explosions.
- // 2. Choose the size of the area in metere.
- // 3. Select how many explosions you require
- // 4. Select the maximum delay between explosions in seconds.
- // 5. minimum delay is 0.5 secs and can be changed in the script.
- // 6. If the two // are removed from the "Grenadebase" line a more visible marke is left on the ground.
- _pos = _this select 0;
- _area = _this select 1;
- _rounds = _this select 2;
- _del = _this select 3;
- _height = 0;// increase this if you want the items to fall from the sky.
- _ammo = "grenade";// Ammo can be changed for larger effects.
- for [{_i = 0},{_i < _rounds},{_i = _i + 1}] do
- {
- _newpos = GetPos _pos;
- _posX = _newpos select 0;
- _posY = _newpos select 1;
- _bomb = _ammo createVehicle[(_posX + random _area)-_area/2, (_posY + random _area)-_area/2,_height];
- // _bomb = "GrenadeBase" createVehicle [(getpos _bomb select 0),(getpos _bomb select 1),-10];
- sleep (random _del)+0.5;// minimum delay 0.5, adjust for best results.
- };
复制代码 剛剛找到的,單純產生特效引爆的Script |
|