Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
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 00044 00045 00046 |
//GKDeathMonitor as part of the GoodKarma package //Build 4 Beta 4.5 Release //By: Jonathan Zepp class GKDeathMonitor extends Actor placeable; var() name GoodKarmaActorTag ; var() byte mode ; //1 for triggers all the time when dead, 0 for triggers once when it first dies var Actor deathMonitor, temp ; var class<Actor> GKActor ; var class<damageType> killDamType ; var bool wasDead ; function tick(float DeltaTime) { if(deathMonitor != none) { if((NetKActor(deathMonitor)).bDead) { if(mode == 0 && !wasDead) TriggerEvent(Event, none, none) ; else if(mode ==1) TriggerEvent(Event, none, none) ; wasDead = true ; } else wasDead = false ; } } function PostBeginPlay() { forEach AllActors(GKActor, temp, GoodKarmaActorTag) deathMonitor = temp ; } defaultproperties { GKActor=Class'GoodKarma.NetKActor' bHidden=True Texture=Texture'GKTextures.ActorSprites.GKDeathMonitor' DrawScale=1.500000 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |