The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
problem with enemies not backing off
convolution223 Offline
Member

Posts: 78
Threads: 15
Joined: Jul 2011
Reputation: 0
#1
problem with enemies not backing off

If a player enters a room (or in this case, a wardrobe) with an unbreakable door, the enemy just keeps hacking away at the door, and won't leave the player alone! the player's just stuck there. I need to make the enemy back off without disappearing. any ideas? I was thinking of maybe using this, but the wiki doesn't give much of an explanation of what it does:
SetEnemyDisabled(string& asName, bool abDisabled);
would this help?
or is there a better way? Because I have pathnodes set up so the monster will walk past the wardrobe and wait for the player to come out if the player's impatient, but if he sees the player enter the wardrobe, the player's totally f***ed.
07-20-2011, 05:35 PM
Find


Messages In This Thread
problem with enemies not backing off - by convolution223 - 07-20-2011, 05:35 PM



Users browsing this thread: 1 Guest(s)