Question about activating monsters

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

Question about activating monsters

#1

Post by ibm5155 » Thu Jul 17, 2014 8:35 pm

I got some idea based on nether, and I got curious if at least there's a way to make it happen.

Is it possible to active a monster to kill you if you're x meters from him?

I think that when you run it could alert the monsters on the same way that a shoot would active any monster...
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

User avatar
Kaminsky
Developer
Posts: 204
Joined: Sun Apr 14, 2013 7:17 pm
Location: Canada

RE: Question about activating monsters

#2

Post by Kaminsky » Thu Jul 17, 2014 8:44 pm

A DECORATE function that you can use for an actor can be: A_JumpIfCloser. This function allows an actor's current state to change, depending on the distance that the target is from it. In this situation, you could have the actor idle until a target reaches a preferable distance, allowing it to activate programmatically.
Last edited by Kaminsky on Thu Jul 17, 2014 8:44 pm, edited 1 time in total.

User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

RE: Question about activating monsters

#3

Post by ibm5155 » Thu Jul 17, 2014 10:07 pm

:O good to see that it support it on zandronum, I wish I had les maps to make, if not I would make a nether tc *__*
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

Post Reply