From 7989da8bfa919df1b4cd4f4ce36770a93cfc4f9a Mon Sep 17 00:00:00 2001 From: NovaRain Date: Sun, 13 Aug 2017 11:45:12 +0800 Subject: [PATCH] Added missing define and description for item_weight. --- artifacts/scripting/headers/sfall.h | 1 + artifacts/scripting/sfall function notes.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/artifacts/scripting/headers/sfall.h b/artifacts/scripting/headers/sfall.h index 7ae66b9d..6580e042 100644 --- a/artifacts/scripting/headers/sfall.h +++ b/artifacts/scripting/headers/sfall.h @@ -216,6 +216,7 @@ #define intface_is_hidden sfall_func0("intface_is_hidden") #define intface_redraw sfall_func0("intface_redraw") #define intface_show sfall_func0("intface_show") +#define item_weight(obj) sfall_func1("item_weight", 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) diff --git a/artifacts/scripting/sfall function notes.txt b/artifacts/scripting/sfall function notes.txt index acb3a185..67e1322d 100644 --- a/artifacts/scripting/sfall function notes.txt +++ b/artifacts/scripting/sfall function notes.txt @@ -372,6 +372,9 @@ Some utility/math functions are available: > void sfall_func0("exec_map_update_scripts") - executes map_update_p_proc for all objects on map and global/hook scripts as well +> int sfall_func1("item_weight", object) +- gets the current weight of an object + > int sfall_func1("get_outline", object) - gets the current outline color for an object