Page 1 of 1
					
				can armor equiment have no take_result?
				Posted: Sun May 15, 2022 9:18 am
				by davemcdave
				when i set take_result = nil, it defaults to using name of the prototype.  
is there a way to have an equipment removed from an armor give no item?
			 
			
					
				Re: can armor equiment have no take_result?
				Posted: Sun May 15, 2022 5:02 pm
				by Silari
				Setting a value to nil in LUA is how you remove it from a table, thus making Factorio use the default. Sometimes an empty string works to signify nothing, but it looks like Factorio requires equipment to have a take_result. You can work around it a bit by using the on_equipment_removed event to remove the item from the player's cursor/inventory.
Note if you just want the player to not be able to change equipment in a grid at all, there's an equipment_grid.locked property for that.
			 
			
					
				Re: can armor equiment have no take_result?
				Posted: Mon May 16, 2022 3:20 am
				by davemcdave
				on_equipment_removed is the way.  
thanks 
