Created
April 17, 2017 17:09
-
-
Save BrettNordin/69c5db39c3766f76b99ace444e0602a3 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
/** | |
* ExileServer_system_lootManager_network_spawnLootRequest | |
* | |
* Exile Mod | |
* www.exilemod.com | |
* © 2015 Exile Mod Team | |
* | |
* This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. | |
* To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. | |
*/ | |
private["_sessionID","_parameters","_buildingNetIDs","_building"]; | |
_sessionID = _this select 0; | |
_parameters = _this select 1; | |
_buildingNetIDs = _parameters select 0; | |
{ | |
_building = objectFromNetId _x; | |
try | |
{ | |
if (isNull _building) throw false; | |
if (isObjectHidden _building) throw false; | |
if (_building getVariable ["ExileHasLoot", false]) throw false; | |
_building call ExileServer_system_lootManager_spawnLootInBuilding; | |
} | |
catch | |
{ | |
}; | |
} | |
forEach _buildingNetIDs; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment