Page 1 of 1

geting form on_player_placed_equipment to the entity

Posted: Fri Oct 07, 2016 12:16 pm
by ukezi
I'm making a mod that does burner equipment. for that I'm using the on_player_placed_equipment event to detect when ever a player puts one of my equipments in a grid. For the player I can get to his inventory by using the player_index and the global list of players. is there a way to get to the inventory of a car from what I get from that event? I'd like to not have to go over every car, tank and train to find out witch one it was put into.

Re: geting form on_player_placed_equipment to the entity

Posted: Fri Oct 07, 2016 12:45 pm
by LuziferSenpai
Go and look in the Code of this MOD:

https://mods.factorio.com/mods/mknejp/electric-vehicles

Re: geting form on_player_placed_equipment to the entity

Posted: Fri Oct 07, 2016 2:52 pm
by aubergine18
Not sure what you're doing with the car entities, but another good mod to look at for burner-related stuff is KS_Power: https://mods.factorio.com/mods/Klonan/KS_Power