Pain Elemental style ATTACK

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.

Pain Elemental style ATTACK

Postby Hidden Hands » Sun Mar 04, 2018 7:15 am

I have replaced the Pain Elemental with a new monster and I have replaced the Lost Soul with a new monster. Now I have a problem. The Lost Soul replacement monster is being spawned by the Pain Elemental replacement monster. How can I change this so the Pain Elemental replacement monster spawns a DIFFERENT enemy instead of Lost Soul replacements? I want them to spawn an entirely different monster but am having no luck finding the DECORATE code for the actual attack that triggers the "Lost Soul".

Thanks in advance.

Code: Select allExpand view
A_PainAttack [(string spawntype [, float angle [, int flags [, int limit )]]]]

What would I need to do with this code to make it shoot my custom monster?
User avatar
Hidden Hands
Cherub
 
Joined: 20 Sep 2016
Location: London, England
Discord: VGCtm
Operating System: Windows Vista/7/2008 32-bit

Re: Pain Elemental style ATTACK

Postby Mikk- » Sun Mar 04, 2018 7:52 am

Really? It's the first argument. The code would go like
Code: Select allExpand view
A_PainAttack("MyCustomMonster")
in the missile state of your Pain Elemental replacement actor
User avatar
Mikk-
yooooooooooo
 
Joined: 30 Jun 2009
Location: Somewhere off Kanagawa
Discord: Mikk0451#3922

Re: Pain Elemental style ATTACK

Postby Hidden Hands » Sun Mar 04, 2018 9:04 am

Mikk- wrote:Really? It's the first argument. The code would go like
Code: Select allExpand view
A_PainAttack("MyCustomMonster")
in the missile state of your Pain Elemental replacement actor

Wow, I'm an idiot. Can't believe I couldn't do that. Thank you, works great.
User avatar
Hidden Hands
Cherub
 
Joined: 20 Sep 2016
Location: London, England
Discord: VGCtm
Operating System: Windows Vista/7/2008 32-bit


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest