I would like to see a sysAddObjEvent.
It would have three arguments. The object, the name of the event, and the function. This would allow us to add events to things after the obj was created. The events would need to have a global variable that stores the obj that is in.
I am not sure if it should overwrite existing event code will think about it. 8)
sysAddObjEvent
- Betelgeuse
- Fleet Officer
- Posts: 1920
- Joined: Sun Mar 05, 2006 6:31 am
Crying is not a proper retort!
The main reason for this is to permit events to be used in frameworks (like onDamage and onHit in a damage system) without overriding all ships. If this is not made available in some form no damage system or similar mod will be compatable with any other mod that creates or overrides any ships or stations.