Implement next_time (nextthink) exposure.
@@ -90,6 +90,7 @@ int mapstrings_entity_property(ScriptVariant **varlist, int paramCount)
"spawn_type",
"speed_multiplier",
"stall_time",
+ "think_time",
"timestamp",
"toss_time",
};
@@ -652,6 +653,13 @@ HRESULT openbor_get_entity_property(ScriptVariant **varlist , ScriptVariant **pr
break;
+ case _ENTITY_THINK_TIME:
+
+ ScriptVariant_ChangeType(*pretvar, VT_INTEGER);
+ (*pretvar)->lVal = (LONG)handle->nextthink;
+
+ break;
+
case _ENTITY_TIMESTAMP:
ScriptVariant_ChangeType(*pretvar, VT_INTEGER);
@@ -1317,6 +1325,15 @@ HRESULT openbor_set_entity_property(ScriptVariant **varlist, ScriptVariant **pre
break;
+ case _ENTITY_THINK_TIME:
+
+ if (SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
+ {
+ handle->nextthink = temp_int;
+ }
+
+ break;
+
case _ENTITY_TIMESTAMP:
if (SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
