sysAddObjEvent

Post ideas & suggestions you have pertaining to the game here.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

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)
Crying is not a proper retort!
User avatar
Atarlost
Fleet Admiral
Fleet Admiral
Posts: 2391
Joined: Tue Aug 26, 2008 12:02 am

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.
Post Reply