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
Enemy does not patrol
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: Enemy does not patrol

(03-25-2012, 04:47 PM).eX. Wrote: how can I make monster fade after reaching certain point ? can u give me example plz ? and yeah there was wrong condition sry

Depends on whether or not you want it to be capable of chasing the player. Also, as far as i know, path nodes are not applicable to entity collision callbacks; you're going to need a script area. I'm not going to provide any example code since your current code shows that you have knowledge of entity collision callbacks, but your current code just needs to change the child name for the FadeEnemyToSmoke collision callback to a script area, remove the FadeEnemyToSmoke function from the MonsterFunction function, and define a FadeEnemyToSmoke function which complies with the entity collision callback syntax, which calls the original FadeEnemyToSmoke function.

Tutorials: From Noob to Pro
(This post was last modified: 03-25-2012, 05:10 PM by Your Computer.)
03-25-2012, 05:09 PM
Website Find


Messages In This Thread
Enemy does not patrol - by .eX. - 03-25-2012, 04:23 PM
RE: Enemy does not patrol - by Your Computer - 03-25-2012, 04:31 PM
RE: Enemy does not patrol - by .eX. - 03-25-2012, 04:47 PM
RE: Enemy does not patrol - by Your Computer - 03-25-2012, 05:09 PM
RE: Enemy does not patrol - by .eX. - 03-25-2012, 05:11 PM



Users browsing this thread: 1 Guest(s)