Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Actor BlowupActor
- {
- //whatever other stuff up here
- Painchance 255
- States:
- {
- Spawn:
- TNT1 A 0
- TNT1 A 0
- TNT1 A 0 ACS_ExecuteWithResult(1)
- Goto Spawn2
- Spawn2:
- TNT1 A 1 //or whatever
- Loop
- Pain:
- TNT1 A 0
- TNT1 A 0
- TNT1 A 0 ACS_ExecuteWithResult(1)
- Goto Spawn2
- BlowUpWall:
- //and whatever else here
- }
- }
- int BlowupActorHealth; //this needs to be declared outside of any script
- script 1 (void)
- {
- int NewHealth = GetActorProperty(0,APROP_Health);
- if ((BlowupActorHealth - NewHealth) >= #)
- {
- SetActorState(0,"BlowUpWall");
- Terminate;
- }
- else
- {
- BlowupActorHealth = NewHealth;
- Terminate;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement