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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
some questions (foritems, block check)
Author Message
Art
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Apr 2012
Reputation: 0



Post: #1
some questions (foritems, block check)
Hello.

Interesting to know, is there a way to use 'foritems' without actual object? For example, foritems function called by character or item, and search of items going from that object which called function. But is it possile to call function without object? I know coordinates where to start search, and seems i need to create item and call function, but can i do that foritems without creating item? Just somehow to specify coordinates where to start search, or maybe there is other function for such way?

And another question - is there function to check block point on map? For example, table, wall, tree - they are blocking, but floor not blocking, so instead of checking type of each static item on point, i want to check just is that point blocked for movement or not.
09-07-2015 09:24 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
some questions (foritems, block check) - Art - 09-07-2015 09:24 PM

Forum Jump:


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