Created
June 7, 2017 06:54
-
-
Save worldwidesorrow/898411ea95ef8b89d568b33cfaa9ff67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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