mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Fixed broken return values in HOOK_FINDTARGET.
Changed the two arguments for obj_under_cursor to bool.
This commit is contained in:
@@ -542,10 +542,10 @@ Some utility/math functions are available:
|
||||
> object sfall_func0("dialog_obj")
|
||||
- returns the object (critter) the player is having a conversation or bartering with
|
||||
|
||||
> object sfall_func2("obj_under_cursor", int crSwitch, int inclDude)
|
||||
- returns the object under the cursor
|
||||
- crSwitch must be -1 or 1: -1 - checks items/critters/scenery/walls, 1 - only checks critters and ignores their cover (roof tiles, walls, scenery, etc.)
|
||||
- passing 0 to the inclDude argument will ignore dude_obj
|
||||
> object sfall_func2("obj_under_cursor", bool crSwitch, bool inclDude)
|
||||
- returns the object under the cursor on the main game screen
|
||||
- crSwitch: True - only checks critters and ignores their cover (roof tiles, walls, scenery, etc.), False - checks all objects (can't check critters under objects)
|
||||
- passing False to the inclDude argument will ignore dude_obj
|
||||
|
||||
------------------------
|
||||
------ MORE INFO -------
|
||||
|
||||
Reference in New Issue
Block a user