Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  
Kontra Kommando

How do I get this Custom Attack to Work Flawlessly?

Recommended Posts

XEND G 6 A_CustomComboAttack(A_SargAttack,32, 3 * random(1, 8), "xen/melee")

It works fine as it is, however, when loading GZDoom, it shows up as a warning.

I want my custom monster to do the Pinky Demon's attack, while making a custom sound. "A_SargAttack" is not the proper way to input it I guess; because that's what is showing up as a warning. Like I said, it works fine in the game, but the warning when it starts up urks me.

Share this post

Link to post

What are you trying to do exactly? A_CustomComboAttack's first parameter is for a missile type. So here you're telling ZDoom that there's a missile called A_SargAttack... Of course that won't work.

If you don't want to use a combo missile+melee attack and only want melee, then use A_CustomMeleeAttack instead. See here for other generic monster attack functions.

As always, never be afraid to look things up in the wiki.

Share this post

Link to post

Try A_CustomMeleeAttack instead if all you want is a close range attack.

A_CustomComboAttack is for attacks which produce a ranged or melee attack, like the Barons do.

edit: Beaten!

Share this post

Link to post


I'm learning the scripting stuff as I go; I'm more of an artist than a computer wiz. I first think up the ideas in my head, accomplish what I can, and then try to dig around for whatever I am ignorant of. I actually did try the wiki, but couldn't find what I was looking for; looks like I missed it.

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this