Home Showcase
Welcome to the new Diaspora forums, please let us know if you see anything broken! Notice: Some users may need to reupload their avatars due to an issue during forum setup!

Ship Core Mod Hider

NinjrKillrNinjrKillr Registered Posts: 175
edited April 2012 in Showcase #1
Another little E2 I thought I'd share. This one hides those ugly ship core mods, by setting their alpha to zero, as well as making them non-solid. Simply place it on your ship, and immediately all your core mods will disappear. If you ever want to see them again, it's as easy as pressing 'Use' on the E2 (sometimes, if it doesn't toggle when you press use, try pressing use again, haven't figured that bug out properly), which toggles it between visible and invisible.
# This E2 was written by NinjrKillr, and has been placed into the public
# domain for free use. Any modifications are allowed, but credit must
# remain with NinjrKillr for the original E2. This E2 is allowed to be
# shared at will, provided this header remains intact.

@name Ship Core Mod Hider
@inputs 
@outputs 
@persist Ship:array Hidden O:entity
@trigger 

runOnUse(1)

if(dupefinished()){exit()}
elseif(first() | clk("Recheck"))
{
    timer("Recheck",10000)
    
    O = owner()
    Ship = entity():getConstraints()
    Hidden = 0
}

if((useClk() && usedBy() == O) || first())
{
    Hidden = Hidden ? 0 : 1
    for(I = 1, Ship:count())
    {
        Part = Ship[I,entity]
        
        if(Part:type():find("sc_") > 0)
        {
            Part:setAlpha(255 * (!Hidden))
            Part:setSolid((!Hidden))
        }
    }
    setName("Ship Core Mod Hider\nStatus:\n" + (Hidden ? "Hidden" : "Visible"))
}

"We fear that which we cannot see... we respect that which we cannot see... thus the blade will be wielded."

Urahara_Bleach_Signature_by_Harty73.png

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file