Monster that Heals Other Monsters

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
Guest

Monster that Heals Other Monsters

Post by Guest »

Whats the best way to implement a hostile monster that will seek out other monsters to heal them with a unique state?
User avatar
Ravick
Posts: 2003
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

Re: Monster that Heals Other Monsters

Post by Ravick »

I've made it by giving the2 the "FRIENDLY" flag so they'll chase other monsters, and basing their 'attack' in A_GiveToTarget.

Here is part of a healer monster from 'MindFuck':

Code: Select all

	Melee:
		EYCL A 2 A_FaceTarget
		EYCL D 2 A_GiveToTarget("Health",2)
		Goto See
Post Reply

Return to “Scripting”