[SOLVED] Actor which will die by hitting monblock lines?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

[SOLVED] Actor which will die by hitting monblock lines?

Post by Void Weaver »

But which can pass through anything else other than those lines.
Can a some flags combination provide it?
User avatar
Void Weaver
Posts: 724
Joined: Thu Dec 18, 2014 7:15 am
Contact:

Re: [SOLVED] Actor which will die by hitting monblock lines?

Post by Void Weaver »

Code: Select all

ACTOR CrazyActor
{
//Speed 30 //Set speed value and its movement direction externally, by A_SpawnItemEx for ex.
+SKULLFLY //Will stop when collide with monblockline
+THRUACTORS //Goes through actors
States
  {
  Spawn:  
  BAL1 A 1 NoDelay A_JumpIf(VelX==0,"Death") //Will die when stop
  Loop  
  
  Death:
   TNT1 A 0 
  Stop
  }
}
Post Reply

Return to “Scripting”