Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class FriezaRadiusDestroyer extends Triggers;
- var() class<Actor> TargetClass; //the class to be destroyed
- var() name DestroyRadius; //the radius of the destruction
- //when this actor is triggered it does its thing
- event Trigger (Actor Other, Pawn EventInstigator) {
- local Actor a;
- if (TargetClass == none) return; //if you don't specify a class then it can't do anything
- foreach RadiusActors(targetClass, a, DestroyRadius) {
- a.destroy();
- }
- }
- defaultproperties {
- texture=texture's_weapon'
- targetClass=class'ScriptedPawn'
- }
Add Comment
Please, Sign In to add comment