Page 1 of 1

Getting a reference to a bot from an event listener?

Posted: Sun May 29, 2016 12:04 pm
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!

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

Posted: Sun May 29, 2016 1:22 pm
by DedlySpyder
viewtopic.php?f=34&t=25270

They are adding robots to their events in 0.13