The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC sleep
Author Message
Nachtmusique
Journeyman
*

Posts: 89
Likes Given: 0
Likes Received: 6 in 6 posts
Joined: Mar 2012
Reputation: 0



Post: #4
RE: NPC sleep
I have several applications in mind. Music is a good example, also having a sleeping npc that players ate trying to sneak past, knock out abilities in combat, etc. I just want a way to make a function for npcs that operates the same way SLEEP does for player characters. With sleep players can immediately move again if they choose to, so I assume I would need to STONE the npc to keep it asleep until I want it to wake up. Depending on the application I could then remove stone to allow the npc to wake up. The problem is that .sleep is bugged for npcs. It creates the corpse, hides the npc, then the hidden npc just dies and creates a second corpse.
(This post was last modified: 08-26-2014 10:32 PM by Nachtmusique.)
08-26-2014 10:29 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPC sleep - Nachtmusique - 08-22-2014, 03:23 PM
RE: NPC sleep - Nachtmusique - 08-25-2014, 02:28 AM
RE: NPC sleep - dagger4k - 08-25-2014, 11:41 PM
RE: NPC sleep - Nachtmusique - 08-26-2014 10:29 PM
RE: NPC sleep - Extreme - 08-27-2014, 01:44 AM
RE: NPC sleep - Ben - 08-27-2014, 08:54 AM
RE: NPC sleep - Nachtmusique - 08-27-2014, 09:32 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)