Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Detection Upon Making a Sound?
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#6
RE: Detection Upon Making a Sound?

You should just script it so that when the box or w/e is thrown at the door, it gives the grunt a pathnode to the player.

Do this by checking for a box - door collision with the EntityCollideCallback.

You can also add some scripts to check whether the box was thrown fast enough if you want. This will mean no matter how far away the monster is, you can be certain he will 'detect' the throw.
Quote:This can be adjusted in the user defined variables.
I usually only modify user_defined_variables when there is no simple way to do it in script. For example, I just modified the block_box entity to be made of metal, because there was no other easy solution I could think of in script.

(This post was last modified: 04-12-2012, 09:46 PM by DRedshot.)
04-12-2012, 09:44 PM
Find


Messages In This Thread
Detection Upon Making a Sound? - by Strembitsky - 04-12-2012, 08:39 PM
RE: Detection Upon Making a Sound? - by JetlinerX - 04-12-2012, 08:41 PM
RE: Detection Upon Making a Sound? - by DRedshot - 04-12-2012, 09:44 PM



Users browsing this thread: 1 Guest(s)