iV - Ghost 50 Posted April 17, 2018 Looking but can't find the answer. The "Box_IDAP_AmmoOrd_F" is a kind of (isKindOf) what? Share this post Link to post Share on other sites
Grumpy Old Man 3549 Posted April 17, 2018 8 minutes ago, HazJ said: ReammoBox Almost. To get all parents use BIS_fnc_returnParents. It's the same as seen at the bottom of the config viewer, your ammo crates parents are: ["Box_IND_AmmoOrd_F","IND_Box_Base","ReammoBox_F","ThingX","Thing","All"] Cheers 1 1 Share this post Link to post Share on other sites
iV - Ghost 50 Posted April 17, 2018 Thanks a lot. I wanna delete dropped gear and other stuff. But the named box is part of my mission and shouldn't deleted. For now I'm using this: private _allObjects = ( allMissionObjects "WeaponHolder" + allMissionObjects "GroundWeaponHolder" + allMissionObjects "WeaponHolderSimulated" ); { if (_x distance player > 600 && !(_x isKindOf "ReammoBox") then { deleteVehicle _x; }; } forEach _allObjects; The script running every 1800 seconds. Share this post Link to post Share on other sites
HazJ 1289 Posted April 17, 2018 Another method would be to delete loot dropped when InventoryClosed EH is triggered. That way you don't need to run that loop every X seconds. https://community.bistudio.com/wiki/Arma_3:_Event_Handlers#InventoryClosed Share this post Link to post Share on other sites
iV - Ghost 50 Posted April 17, 2018 OK. Could be a way. But in my case I like dropping items and other stuff for a while. Only if the "dropper" forget to clean up the area the script should do that. But thanks for the info. Share this post Link to post Share on other sites
HazJ 1289 Posted April 17, 2018 You can still use this method. You don't have to delete it right away. Could add delay there or something. Share this post Link to post Share on other sites
iV - Ghost 50 Posted April 17, 2018 Is the EH case better for the performance or will I don't feel it? Share this post Link to post Share on other sites
HazJ 1289 Posted April 17, 2018 Well, you want a delay either way. As long your loop delay isn't too fast you should be fine, however... I personally wouldn't use allMissionObjects command. https://community.bistudio.com/wiki/allMissionObjects Quote Be VERY careful with the use of this command. It is very demanding as it must iterate through all mission created objects. Particular care should be taken exercising this often on dedicated servers. Also: Quote For some reason in Arma 3 this command is up to 5 times faster on the dedicated server than on a connected client. In my experiments it took on average 5 ms for the command to complete on a client while under 1 ms on the server. 1 Share this post Link to post Share on other sites
iV - Ghost 50 Posted April 17, 2018 I execute them only on my server. // RUN ON DEDICATED SERVER OR PLAYER HOST if (!isServer) exitWith {}; Share this post Link to post Share on other sites
HazJ 1289 Posted April 17, 2018 Oh, okay. Give it a go then. Is there any specific reason why you chose that command over others? Just curious. Share this post Link to post Share on other sites
iV - Ghost 50 Posted April 17, 2018 I am not very experienced and somehow find a way through it. And I hope I'm not using the worst one. Share this post Link to post Share on other sites
HazJ 1289 Posted April 17, 2018 I wouldn't call it the worst. Nothing is bad, sometimes other commands/methods/etc are just better or more suitable. Here are a few others: https://community.bistudio.com/wiki/nearestObjects https://community.bistudio.com/wiki/nearObjects Oo... https://community.bistudio.com/wiki/nearSupplies Never used this one myself. Might be worth checking out. Share this post Link to post Share on other sites