Added "lock_is_jammed" and "unjam_lock" script functions.

This commit is contained in:
NovaRain
2018-04-24 08:13:26 +08:00
parent 0eeab768bd
commit d6aff61607
5 changed files with 24 additions and 1 deletions
+2
View File
@@ -223,6 +223,7 @@
#define intface_redraw sfall_func0("intface_redraw")
#define intface_show sfall_func0("intface_show")
#define item_weight(obj) sfall_func1("item_weight", obj)
#define lock_is_jammed(obj) sfall_func1("lock_is_jammed", obj)
#define outlined_object sfall_func0("outlined_object")
#define real_dude_obj sfall_func0("real_dude_obj")
#define set_car_intface_art(artIndex) sfall_func1("set_car_intface_art", artIndex)
@@ -233,3 +234,4 @@
#define set_outline(obj, color) sfall_func2("set_outline", obj, color)
#define spatial_radius(obj) sfall_func1("spatial_radius", obj)
#define tile_refresh_display sfall_func0("tile_refresh_display")
#define unjam_lock(obj) sfall_func1("unjam_lock", obj)
+8 -1
View File
@@ -373,7 +373,7 @@ Some utility/math functions are available:
- executes map_update_p_proc for all objects on map and global/hook scripts as well
> void sfall_func2("set_ini_setting", string setting, int/string value)
- writes an integer or a string value to an ini file in the Fallout directory. If the ini file doesn't exist, it will be created
- writes an integer or a string value to an ini file in the Fallout directory. If the ini file does not exist, it will be created
- The setting argument works in the same way as in get_ini_setting; seperate the file name, section and key with a '|' character; e.g. 'set_ini_setting("myini.ini|mysec|var1", 42)'
- The file name is limited to 63 chars, including the extension
- The section name is limited to 32 characters
@@ -435,6 +435,13 @@ Some utility/math functions are available:
- displays player stats in the inventory screen display window
- works only in opened inventory
> int sfall_func1("lock_is_jammed", object)
- returns 1 if the lock (container or scenery) is currently jammed, 0 otherwise
> void sfall_func1("unjam_lock", object)
- unjams a lock immediately, without having to wait until the next day
- does not work in use_skill_on_p_proc and use_obj_on_proc procedures
------------------------
------ MORE INFO -------
------------------------