how to make item that cleans all items dropped on the ground?
1 Like
if you already have a trigger to do that then try to use a for all items dropped on the ground then do delete selected entity, i hope this helps :3
- Create a new consumable item and name it
- Ensure its Type is consumable and set default quantity and max quantity properly (such as 1 and 10 respectively)
- Open the entity script editing page (Click the green button written Script (0)) and add these lines:
for all items dropped on the ground
destroy selected item
4: Edit the value of Effects → OnUse → RunScript to the name of the entity script that you have just created
5. That’s it. You can either sell or equip an item to a unit.