Object registration

Freeform discussion about anything related to modding Transcendence.
Post Reply
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Is it possible for an object to be registered with multiple space objects? If so, if two objects both have <Onobjdestrpyed>, will both events run?
I need this system so I can track what the player ship kills so I can increment/decrement data based on kinds of ships killed.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

RPC wrote:Is it possible for an object to be registered with multiple space objects? If so, if two objects both have <Onobjdestrpyed>, will both events run?
I need this system so I can track what the player ship kills so I can increment/decrement data based on kinds of ships killed.
Do you mean with objRegisterForEvents? Then yes, there is no limit to the number of registrations. Each object keeps a list of other objects it needs to call for OnObjDestroyed, etc.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Yes, with objRegisterForEvents. Thanks for the reply George :3
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Post Reply