Guest User

Untitled

a guest
Oct 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. class FriezaRadiusDestroyer extends Triggers;
  2.  
  3. var() class<Actor> TargetClass; //the class to be destroyed
  4. var() name DestroyRadius; //the radius of the destruction
  5.  
  6. //when this actor is triggered it does its thing
  7. event Trigger (Actor Other, Pawn EventInstigator) {
  8. local Actor a;
  9. if (TargetClass == none) return; //if you don't specify a class then it can't do anything
  10.  
  11. foreach RadiusActors(targetClass, a, DestroyRadius) {
  12. a.destroy();
  13.  
  14. }
  15. }
  16.  
  17. defaultproperties {
  18. texture=texture's_weapon'
  19. targetClass=class'ScriptedPawn'
  20. }
Add Comment
Please, Sign In to add comment