@name Anti-Gravity
@outputs A Dst
@persist [E F]:entity
interval(15)
if(first())
{
    setName("holoAnim tester")
    
    E = entity()
    E:setColor(0,0,0,0)
    E:propNotSolid(1)
    F = E:isConstrainedTo()
    if(F:type()=="gmod_wire_field_device")
    {
        F:setColor(0,0,0,0)
        F:createWire(E,"Active","A")
        F:createWire(E,"Distance","Dst")
        F:propNotSolid(1)
        F:propFreeze(1)
        E:setPos(vec(0,0,1000))
        E:parentTo(F)
        F:setPos(vec(0,0,1000))
    }else
    {
        print("Spawn on field gen.")
        selfDestruct()
    }
    
    runOnChat(1)
    
    Dst = 10^7
}

if(chatClk(owner()))
{
    local LS = owner():lastSaid():lower()
    if(LS == "-a")
    {
        hideChat(1)
        A = !A
        hint("Toggled to "+A,3)
    }
}
