I made that function so I could call it before loading a kit, it checks for a rock and then drops it next to the player. It could be easily changed for a "drop all" and if needed change the all.ItemID to all.Name
I didn't make it return as soon as it dropped one in case there is more than one.. shouldn't happen but never know if someone looted another
ID's can be found here: http://radmin.elasticbeanstalk.com/item/list/approved/consumable/
the ItemID is the last number in an item URL (ie 13844 for rock: http://radmin.elasticbeanstalk.com/item/edit/13844/)
PS: make sure your kit replaces the rock with something to hit/gather with!
I didn't make it return as soon as it dropped one in case there is more than one.. shouldn't happen but never know if someone looted another
Python:
def dropRock(self, Player):
for all in Player.Inventory.AllItems():
if all.ItemID == 13844:
all.Drop(Player.Location, Vector3(5, 5, 5))
the ItemID is the last number in an item URL (ie 13844 for rock: http://radmin.elasticbeanstalk.com/item/edit/13844/)
PS: make sure your kit replaces the rock with something to hit/gather with!