Cheesecaked

Npc Killer

Sep 20th, 2021
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. @name npc killer
  2. @inputs
  3. @outputs
  4. @persist [N E]:array
  5. @trigger
  6.  
  7. runOnTick(1)
  8. if(first()){
  9. findByClass("npc_*")
  10. N=findToArray()
  11. }
  12. for(I=1,N:count()){
  13. if(N[I,entity]:isAlive()){
  14. E[I,entity]=propSpawn("models/props_phx/misc/potato_launcher_explosive.mdl",N[I,entity]:pos(),1)
  15. E[I,entity]:propBreak()
  16. }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment