I'm a doctor, not a mechanic

Legacy talk:VacuumZone

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 16:37, 3 December 2018 by SeriousBarbie (Talk | contribs) (VacuumZoneEx)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Custom VacuumZone that kills all Pawns also[edit]

This Zone kills players as usual (increasing fatness) but kills pawns instantly.

class VacuumZoneEx expands VacuumZone;
 
event ActorEntered( actor Other ) {
   if (ScriptedPawn(Other) != None)
   {
      ScriptedPawn(Other).TakeDamage
      (
         10000,
         None,
         ScriptedPawn(Other).Location,
         Vect(0,0,0),
         DamageType            
      );
   }
   Super.ActorEntered(Other);
}