Core.Object | +--Engine.Actor | +--Engine.Triggers | +--XIII.XIIITriggers | +--XIII.SoldierTouchAndKill
XIIIPawn
SoldierToKillIfTouchedBy
void
Touch(Actor other)
//____________________________________________________________________
00001 //----------------------------------------------------------- 00002 // 00003 //----------------------------------------------------------- 00004 class SoldierTouchAndKill extends XIIITriggers; 00005 00006 var() XIIIPawn SoldierToKillIfTouchedBy; 00007 00008 //____________________________________________________________________ 00009 function Touch(actor other) 00010 { 00011 if ( (XIIIPawn(other) != none) && (XIIIPawn(Other) == SoldierToKillIfTouchedBy) ) 00012 { 00013 Instigator = XIIIPawn(other); 00014 TriggerEvent(event,self,Instigator); 00015 Instigator.Destroy(); 00016 destroy(); 00017 } 00018 } 00019 00020 00021 00022 defaultproperties 00023 { 00024 }