sniper like monster decorate

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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!)
User avatar
EndHack
Posts: 57
Joined: Wed Feb 14, 2018 8:53 pm

sniper like monster decorate

Post by EndHack »

I was making a sniper monster in decorate and I was testing it on this map im making and the monster like most monsters walked up to me while shooting at me and I was wondering how to make it stay a away from you?
User avatar
Cherno
Posts: 1337
Joined: Tue Dec 06, 2016 11:25 am

Re: sniper like monster decorate

Post by Cherno »

Something like

Code: Select all

See:
		TNT1 A 0 A_JumpIfCloser(640, "Missile", true)
		POSS AABBCCDD 4 A_Chase
If the monster is closer than 640 units, it will fire instead of chasing the player.
User avatar
EndHack
Posts: 57
Joined: Wed Feb 14, 2018 8:53 pm

Re: sniper like monster decorate

Post by EndHack »

thanks!

Return to “Scripting”