Added "proto_exists" script function

Updated gl_auto_closebox example script.
This commit is contained in:
NovaRain
2021-05-25 12:58:03 +08:00
parent b931307ace
commit 989feb1c65
12 changed files with 47 additions and 3 deletions
+1
View File
@@ -332,6 +332,7 @@
#define overlay_clear(winType) sfall_func2("interface_overlay", winType, 2)
#define overlay_clear_rectangle(winType, x, y, w, h) sfall_func6("interface_overlay", winType, 2, x, y, w, h)
#define overlay_destroy(winType) sfall_func2("interface_overlay", winType, 0)
#define proto_exists(pid) sfall_func1("proto_exists", pid)
#define real_dude_obj sfall_func0("real_dude_obj")
#define remove_all_timer_events sfall_func0("remove_timer_event")
#define remove_timer_event(fixedParam) sfall_func1("remove_timer_event", fixedParam)
@@ -742,6 +742,9 @@ optional arguments:
- gvarNumber: the number of the global variable controlling the quest
- thresholdValue: the value of the global variable at which the quest is counted as a failure
> bool sfall_func1("proto_exists", int pid)
- returns True if the specified PID number exists in the list of registered protos
------------------------
------ MORE INFO -------
------------------------