Added "obj_under_cursor" script function (#207)

This commit is contained in:
NovaRain
2018-11-03 22:11:02 +08:00
parent 3c9d5f7cb4
commit 60054c9977
6 changed files with 21 additions and 0 deletions
@@ -542,6 +542,11 @@ 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
------------------------
------ MORE INFO -------
------------------------