<OnUninstall>

Freeform discussion about anything related to modding Transcendence.
Post Reply
steelwing
Militia Lieutenant
Militia Lieutenant
Posts: 100
Joined: Sun Aug 01, 2010 4:33 pm

As near as I can interpret, the OnUninstall event serves up the following variables for use w/in an event handler:
gSource: The object that the item is being uninstalled from
gItem: The item being uninstalled
Do I have these right?
And if this was an armor segment, does either of these variables tell me what segment was removed?
Last edited by steelwing on Sat Apr 28, 2012 8:51 pm, edited 1 time in total.
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

steelwing wrote:As near as I can interpret, the OnUninstall event serves up the following variables for use w/in an event handler:
gSource: The object that the item is being uninstalled from
gItem: The item being uninstalled
Do I have these right?
kinda : yes :
just remember Cargo Space is everything.
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
steelwing
Militia Lieutenant
Militia Lieutenant
Posts: 100
Joined: Sun Aug 01, 2010 4:33 pm

shanejfilomena wrote:
steelwing wrote:As near as I can interpret, the OnUninstall event serves up the following variables for use w/in an event handler:
gSource: The object that the item is being uninstalled from
gItem: The item being uninstalled
Do I have these right?
kinda : yes :
just remember Cargo Space is everything.
OK. And if that was an armor segment that was removed, does either of these tell me which segment?
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?

Check if gArmorSegment exists in <OnUninstall>.
If you don't mind hacking the effect, you could always install the uninstalled segment every time it is uninstalled.
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.
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

on irc we told him to make the armor mass 1 and the max armor mass on the ship 1, that way no other armor plates would fit it
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"
steelwing
Militia Lieutenant
Militia Lieutenant
Posts: 100
Joined: Sun Aug 01, 2010 4:33 pm

:D Yup, I found the IRC channel. Much faster responses! :)
Post Reply