info on <OnSystemObjAttacked> <OnSystemObjDestroyed?

Freeform discussion about anything related to modding Transcendence.
Post Reply
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

what variables do these new awesome events have??
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Glad you like them--it was a great suggestion to add them.

The parameters are similar to OnAttacked and OnObjDestroyed. For <OnSystemObjAttacked>:

Code: Select all

gSource : the object getting the event
aObjAttacked : the object that was attacked
aCause : the missile object that hit
aAttacker : the object that fired the missile
aOrderGiver : the object that ordered the missile to be fired (e.g., if aAttacker is an auton)
aHitPos : where it hit
aHitDir : the direction from which the hit came
aDamageHP : damage hit points
aDamageType : damage type
aWeaponType : unid of the weapon used
For <OnSystemObjDestroyed>:

Code: Select all

gSource : the object receiving the event
aObjDestroyed : the object that was destroyed
aDestroyer : the object that fired the missile that destroyed
aOrderGiver : the object that ordered the missile to be fired.
aWreckObj : the resulting wreck (if any)
aDestroyReason : the cause of the destruction (damage, disintegration, etc.)
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

cool, those will be fun :D
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Indeed. Those are some awesome new events! Anyone want to add the info to the wiki?
Get your own Galactic Omni Device
Get it now. It's free!!
Image
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?

Ok, done :D
Events.
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