How to override the die
action?
#97
-
I want to clean up some states of an agent before it is killed, and here's what I have in driving skill:
But this method is not invoked when Is there a proper way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 1 reply
-
H, there are no real ways to achieve this. What you can do, however is either posting some actions at the simulation level that will be executed every step (for example to verify the registration of vehicles to roads) or add a population listener to the population of vehicles the first time the skill is registered to react when one specific agent is killed. |
Beta Was this translation helpful? Give feedback.
H, there are no real ways to achieve this. What you can do, however is either posting some actions at the simulation level that will be executed every step (for example to verify the registration of vehicles to roads) or add a population listener to the population of vehicles the first time the skill is registered to react when one specific agent is killed.