GenZmeY
431a429926
ScriptWarning: Accessed None 'Data' 011Ext_TraitSupply ServerExt.Default__Ext_TraitSupply 011Function ServerExt.Ext_TraitSupply:CancelEffectOn:0014
26 lines
748 B
Ucode
26 lines
748 B
Ucode
Class Ext_TraitSupply extends Ext_TraitBase;
|
|
|
|
var() Texture2D SupplyIcon;
|
|
|
|
static function ApplyEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
|
{
|
|
if (Data != None) Ext_TraitSupplyData(Data).SpawnSupplier(Player);
|
|
}
|
|
|
|
static function CancelEffectOn(KFPawn_Human Player, Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
|
{
|
|
if (Data != None) Ext_TraitSupplyData(Data).RemoveSupplier();
|
|
}
|
|
|
|
static function PlayerDied(Ext_PerkBase Perk, byte Level, optional Ext_TraitDataStore Data)
|
|
{
|
|
if (Data != None) Ext_TraitSupplyData(Data).RemoveSupplier();
|
|
}
|
|
|
|
defaultproperties
|
|
{
|
|
DefLevelCosts(0)=50
|
|
TraitData=class'Ext_TraitSupplyData'
|
|
|
|
SupplyIcon=Texture2D'UI_World_TEX.Support_Supplier_HUD'
|
|
} |