Getting a reference to a bot from an event listener?
Posted: Sun May 29, 2016 12:04 pm
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!
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!