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:
  • 4 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC AI
Author Message
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #7
RE: NPC AI
Alright, I ran some tests myself, all the errors I could find are patched. Try it out if you're still interested, let me know how it works on your end.

You might want to add this trigger to your boulders and rocks itemdefs in sphere_item_boulders_rocks.scp if you want to only use the NPC AI 'throw rock' feature:
Code:
on=@create
if (<src.ischar>)
  if (<src.npc>)
    remove
  endif
endif
That code will prevent NPCs from creating a rock or boulder via sphere's default behaviour.

If anyone has any comments, suggestions, feedback, questions, anything really, just post it here and I'll see what I can do.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
(This post was last modified: 09-21-2012 05:18 AM by Skul.)
09-21-2012 04:44 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPC AI - Skul - 09-20-2012, 05:08 PM
RE: NPC AI - Extreme - 09-20-2012, 11:51 PM
RE: NPC AI - Skul - 09-21-2012, 01:42 AM
RE: NPC AI - Extreme - 09-21-2012, 01:44 AM
RE: NPC AI - Skul - 09-21-2012, 01:50 AM
RE: NPC AI - Extreme - 09-21-2012, 02:15 AM
RE: NPC AI - Skul - 09-21-2012 04:44 AM
RE: NPC AI - Skul - 09-24-2012, 02:58 AM
RE: NPC AI - Skul - 09-24-2012, 05:41 AM
RE: NPC AI - Skul - 10-01-2012, 02:53 PM
RE: NPC AI - amonvangrell - 01-06-2014, 11:06 AM
RE: NPC AI - XuN - 01-06-2014, 06:38 PM

Forum Jump:


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