Achmed Posted February 5, 2014 Report Share Posted February 5, 2014 How does the DZE_LootSpawnTimer work? Is it the case that what ever it's set to is how many minutes before the next loot will spawn? Ed. DZE_LootSpawnTimer = 60 means loot will spawn 60 min after it last spawn stopping people from loot cycling Link to comment Share on other sites More sharing options...
0 Achmed Posted February 7, 2014 Author Report Share Posted February 7, 2014 anyone know? Link to comment Share on other sites More sharing options...
0 blacksheep25 Posted February 11, 2014 Report Share Posted February 11, 2014 No idea, never heard of that option. If anyone knows id love to see if this works too. Link to comment Share on other sites More sharing options...
0 Achmed Posted February 11, 2014 Author Report Share Posted February 11, 2014 It was in one of the change logs but it's not very clear Link to comment Share on other sites More sharing options...
0 J3T Posted February 13, 2014 Report Share Posted February 13, 2014 Little explaination would be nice. Is it minutes? Seconds? Hours? Link to comment Share on other sites More sharing options...
0 DJDosKiller Posted February 21, 2014 Report Share Posted February 21, 2014 bump Link to comment Share on other sites More sharing options...
0 WEB11 Posted February 21, 2014 Report Share Posted February 21, 2014 Also interested. Link to comment Share on other sites More sharing options...
0 fr1nk Posted February 21, 2014 Report Share Posted February 21, 2014 Would it be the buffer time in-between loot cleanup and the next loot spawn? Link to comment Share on other sites More sharing options...
0 TheVampire Posted February 21, 2014 Report Share Posted February 21, 2014 //Loot if ((_dis < 120) and (_dis > 30) and !_inVehicle) then { _looted = (_x getVariable ["looted",-0.1]); _cleared = (_x getVariable ["cleared",true]); _dateNow = (DateToNumber date); _age = (_dateNow - _looted) * 525948; //diag_log ("SPAWN LOOT: " + _type + " Building is " + str(_age) + " old" ); if ((_age > DZE_LootSpawnTimer) and (!_cleared)) then { _nearByObj = nearestObjects [(getPosATL _x), ["WeaponHolder","WeaponHolderBase"],((sizeOf _type)+5)]; {deleteVehicle _x} forEach _nearByObj; _x setVariable ["cleared",true,true]; _x setVariable ["looted",_dateNow,true]; }; if ((_age > DZE_LootSpawnTimer) and (_cleared)) then { //Register _x setVariable ["looted",_dateNow,true]; //cleanup _x call building_spawnLoot; }; }; Its the time between the loot being respawned in minutes. By default when the player is the correct distance the loot checks if it is older than the lootspawntimer. If the loot is older, the loot gets deleted and re-spawned. Link to comment Share on other sites More sharing options...
0 WEB11 Posted February 21, 2014 Report Share Posted February 21, 2014 So what would be a setting for quick loot respawns? Link to comment Share on other sites More sharing options...
0 Achmed Posted February 21, 2014 Author Report Share Posted February 21, 2014 So if i was to set it to "DZE_LootSpawnTimer = 60", does that mean that no matter what there will be no new loot for a hour or if all the loot was cleared up would it then spawn again regardless? Link to comment Share on other sites More sharing options...
0 TheVampire Posted February 21, 2014 Report Share Posted February 21, 2014 So if i was to set it to "DZE_LootSpawnTimer = 60", does that mean that no matter what there will be no new loot for a hour or if all the loot was cleared up would it then spawn again regardless? If you set it to 60 then the loot will sit there until the server cleans it up for a player not being nearby, or the player sits there an hour. At default it is set to 10minutes. Setting it lower will make loot respawn faster. Brummelpuh and WEB11 2 Link to comment Share on other sites More sharing options...
Question
Achmed
How does the DZE_LootSpawnTimer work?
Is it the case that what ever it's set to is how many minutes before the next loot will spawn?
Ed. DZE_LootSpawnTimer = 60 means loot will spawn 60 min after it last spawn stopping people from loot cycling
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now