LeeT911
Eloquent Silence
So I see two things defined in CvEventManager.py, "onUnitKilled" and "onUnitLost".
To see which is used when, I added a line to pop a message saying "killed" or "lost" in the respective function. Now my problem is that "lost" never comes up. I can get "killed" easily, by creating a couple units in the WorldBuilder and having them whack each other.
However, I can't seem to get "lost" to appear. I've tried capturing workers/settlers, killing great people, disbanding units, founding cities (since the settler disappears), but nothing works. I don't even get a "kill" event for any of these.
Does anyone know when the "onUnitLost" is ever applied?
I'm poking around in the SDK files to try and see what's going one, but since I don't really know C, I'm not having much luck. From what I can tell (though I could easily be wrong), it seems the CvUnit::found function calls kill at the end, so I'm not sure what's going.
To see which is used when, I added a line to pop a message saying "killed" or "lost" in the respective function. Now my problem is that "lost" never comes up. I can get "killed" easily, by creating a couple units in the WorldBuilder and having them whack each other.
However, I can't seem to get "lost" to appear. I've tried capturing workers/settlers, killing great people, disbanding units, founding cities (since the settler disappears), but nothing works. I don't even get a "kill" event for any of these.
Does anyone know when the "onUnitLost" is ever applied?
I'm poking around in the SDK files to try and see what's going one, but since I don't really know C, I'm not having much luck. From what I can tell (though I could easily be wrong), it seems the CvUnit::found function calls kill at the end, so I'm not sure what's going.