Search the Community
Showing results for tags 'loot spawner'.
Found 1 result
sarogahtyp posted a topic in ARMA 3 - MISSION EDITING & SCRIPTINGSarogahtyps Simple Loot Spawner - SSLS V-1.1 Spawns weapons, items and bags in buildings near to alive players maybe inside a trigger area or marker area. Deletes stuff if players are not close enough anymore. The script doesnt care about any trigger preferences except the trigger area. Soft delayed item spawning to prevent performance impact. Script reads your missions config files and should spawn loot of your mods (e.g. CUP weapons, Etc.) as well DOWNLOAD V-1.1 Usage: initServer.sqf fnc_spawn_loot = compileFinal preprocessFileLineNumbers "SSLSv1-1.sqf"; _d =  call fnc_spawn_loot; you are able to stop the loot spawning script at any time by SSLS_script_switch_off = true; If you set up high spawn chances (see top of script) and have a high player count on your server then I recommend to make trigger or marker areas for spawning to get the needed performance. But if you do not encounter performance issues then spawning loot everywhere near players should be okay. Tweakable features (can be found on top of the script): //***** EDIT BELOW TO ADJUST MAIN BEHAVIOR // (L) means lower values are better for performance - (H) means the opposite SSLS_script_switch_off = false; //if you want to stop spawning loot then set this to true at any time in your mission _trigger_array = ; // contains the names of triggers/markers in which area loot should spawn. _spawn_chance = 100; // (L) The chance to spawn loot inside of a specific house. _launcher_chance = 30; // chance to spawn a launcher as weapon instead of rifle, pistol or machine gun _item_chance = 70; // chance to spawn an item instead of a weapon _bag_chance = 50; // chance to spawn a backpack instead of an item _max_magazines = 7; // the maximum number of magazines spawned for a gun _max_magazines_launcher = 3; // maximum number of ammo to spawn for rocket launchers _max_magazines_gl = 5; // maximum number of ammo to spawn for grenade launchers _house_distance = 25; // (L) houses with that distance to players will spawn loot _player_exclude_distance = 15; //if 2 players or more are closer together than this then only 1 player is considered _exclude_loot = ; //classnames of items which should never spawn (blacklist) _exclusive_loot = ; //add classnames here and nothing else will be spawned (whitelist) _use_bohemia_classes = true; // for spawning bohemia created stuff set this to true _use_mod_classes = true; //// for spawning stuff from loaded mods set this to true _debug = false; //information about number of places where items were spawned or deleted // if you have performance issues then consider introducing spawning areas (_trigger_array) before changing following values! _spawn_interval = 1.5; // (H) desired runtime for the main loop. time which is not needed will be used for soft spawning or a break. //***** EDIT ABOVE TO ADJUST MAIN BEHAVIOR details: Changelog 1.1 (download) -fixed a major bug which showed an error message during spawning -added feature to enable/disable Mod/Bohemia classes spawning -huge performance optimizations (shorter arrays, better smooth spawning and other stuff) Changelog 1.0 (download) -added script