Always snap to grid

Legacy talk:VacuumZone

From Unreal Wiki, The Unreal Engine Documentation Site
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);
}