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
@@ -28,9 +28,10 @@ procedure start begin
lootObject := loot_obj;
if (obj_type(lootObject) != OBJ_TYPE_ITEM) then lootObject = 0;
end else if (lootObject andAlso get_sfall_arg_at(1) == INTFACELOOT) then begin
if (get_object_data(lootObject, OBJ_DATA_CUR_FRM) > 1) then call close in 1;
closeObject = lootObject;
lootObject = 0;
if (get_object_data(lootObject, OBJ_DATA_CUR_FRM) > 1) then begin
closeObject = lootObject;
call close in 0;
end
end
end
end