info on <OnSystemObjAttacked> <OnSystemObjDestroyed?
-
- 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??




"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"
-
- 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>:
For <OnSystemObjDestroyed>:
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
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.)
-
- 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 





"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"
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


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.
Get on Discord for mod help and general chat


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.