Advertisement
scroton

Untitled

Oct 21st, 2014
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Actor BlowupActor
  2. {
  3. //whatever other stuff up here
  4. Painchance 255
  5. States:
  6. {
  7. Spawn:
  8. TNT1 A 0
  9. TNT1 A 0
  10. TNT1 A 0 ACS_ExecuteWithResult(1)
  11. Goto Spawn2
  12. Spawn2:
  13. TNT1 A 1 //or whatever
  14. Loop
  15. Pain:
  16. TNT1 A 0
  17. TNT1 A 0
  18. TNT1 A 0 ACS_ExecuteWithResult(1)
  19. Goto Spawn2
  20. BlowUpWall:
  21. //and whatever else here
  22. }
  23. }
  24.  
  25.  
  26.  
  27.  
  28.  
  29. int BlowupActorHealth; //this needs to be declared outside of any script
  30.  
  31. script 1 (void)
  32. {
  33. int NewHealth = GetActorProperty(0,APROP_Health);
  34. if ((BlowupActorHealth - NewHealth) >= #)
  35. {
  36. SetActorState(0,"BlowUpWall");
  37. Terminate;
  38. }
  39. else
  40. {
  41. BlowupActorHealth = NewHealth;
  42. Terminate;
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement