Getting a reference to a bot from an event listener?

Place to get help with not working mods / modding interface.
JohnnyWing
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun May 29, 2016 10:46 am
Contact:

Getting a reference to a bot from an event listener?

Post by JohnnyWing »

Hello,
I'm just getting started modding and can't figure out how to do what I want to ... I've got an event listener set up for the 'on_robot_pre_mined' event and it contains an entity of the item being mined, but I'm looking to get a reference to the robot that's doing the mining... Is this possible, and how? If not, any alternative suggestions? My objective is to end up spawning sprites based on the robot that's going to do a deconstruction, when the target entity is a tree.
Thanks!
User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 254
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: Getting a reference to a bot from an event listener?

Post by DedlySpyder »

viewtopic.php?f=34&t=25270

They are adding robots to their events in 0.13
Post Reply

Return to “Modding help”