Skip to content

Instantly share code, notes, and snippets.

@worldwidesorrow
Created June 7, 2017 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save worldwidesorrow/898411ea95ef8b89d568b33cfaa9ff67 to your computer and use it in GitHub Desktop.
Save worldwidesorrow/898411ea95ef8b89d568b33cfaa9ff67 to your computer and use it in GitHub Desktop.
//AII Rail Gun Spawn Script by JasonTM
/*
Install Instructions
Place this file into a folder called mapaddons in the root of your server PBO.
Open dayz_server\system\server_monitor.sqf and add this line at the very bottom.
execVM "z\addons\dayz_server\mapaddons\AIIRailGunSpawn.sqf";
Save and repack your server PBO.
*/
private ["_spawnPoint","_spawnChance","_position"];
_position = [4978.83, 6645.74, 17.2435];
_spawnChance = random(1);
if (_spawnChance <= 0.25) then { //25% chance of railgun spawn
_spawnPoint = createVehicle ["WeaponHolder",_position,[],0,"CAN_COLLIDE"];
_spawnPoint addWeaponCargoGlobal ["nsw_er7s",1];
_spawnPoint addMagazineCargoGlobal ["nsw_er7mm",1];
_spawnPoint setVariable ["permaLoot",true];
diag_log "Rail gun has spawned at object AII";
} else {diag_log "Railgun did not spawn at object AII";};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment