Multiple Enemy Attacks?

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
FakeArchvile
Posts: 5
Joined: Tue Jun 20, 2017 9:15 am

Multiple Enemy Attacks?

Post by FakeArchvile »

Hello, I'm new to Doom map-making, DECORATE, and ASC scripting in general.

What I'm trying to do is make an enemy that has multiple attacks, and selects from said attacks randomly. I have no idea how to do this.
Accensus
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: Multiple Enemy Attacks?

Post by Accensus »

Code: Select all

A_Jump(256, "Attack1", "Attack2", "Attack3")
Where Attack1 to 3 are the state labels.

You put this code in the Melee/Missile state of the monster.
FakeArchvile
Posts: 5
Joined: Tue Jun 20, 2017 9:15 am

Re: Multiple Enemy Attacks?

Post by FakeArchvile »

Lud wrote:

Code: Select all

A_Jump(256, "Attack1", "Attack2", "Attack3")
Where Attack1 to 3 are the state labels.

You put this code in the Melee/Missile state of the monster.
Ah, okay. Thanks a bunch!
Accensus
Posts: 2383
Joined: Thu Feb 11, 2016 9:59 am

Re: Multiple Enemy Attacks?

Post by Accensus »

You're welcome. :)
Locked

Return to “Editing (Archive)”