Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

DruidsRPGcvs.ArtifactKillAllTurrets


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
class ArtifactKillAllTurrets extends RPGArtifact;

function Activate()
{
    local EngineerPointsInv Inv;

    Inv = EngineerPointsInv(Instigator.FindInventoryType(class'EngineerPointsInv'));
    if(Inv != None)
        inv.KillAllTurrets();

    bActive = false;
    GotoState('');
    return;
}

exec function TossArtifact()
{
    //do nothing. This artifact cant be thrown
}

function PostBeginPlay()
{
    super.PostBeginPlay();
    disable('Tick');
}

function DropFrom(vector StartLocation)
{
    if (bActive)
        GotoState('');
    bActive = false;

    Destroy();
    Instigator.NextItem();
}

defaultproperties
{
     CostPerSec=0
     MinActivationTime=0.0
     IconMaterial=Texture'DruidEngTextures.Icons.SummonTurretIcon'
     ItemName="Kill All Summoned Turrets"
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: Sun 29/10/2006 16:24:00.000 - Creation time: Wed 7/2/2007 19:16:33.609 - Created with UnCodeX