Implement next_attack_time (nextattack) exposure.
@@ -71,6 +71,7 @@ int mapstrings_entity_property(ScriptVariant **varlist, int paramCount)
"mp_old",
"mp_time",
"name",
+ "next_attack_time",
"nograb",
"nograb_default",
"opponent",
@@ -520,6 +521,13 @@ HRESULT openbor_get_entity_property(ScriptVariant **varlist , ScriptVariant **pr
(*pretvar)->strVal = StrCache_CreateNewFrom(handle->name);
break;
+ case _ENTITY_NEXT_ATTACK_TIME:
+
+ ScriptVariant_ChangeType(*pretvar, VT_INTEGER);
+ (*pretvar)->lVal = (LONG)handle->nextattack;
+
+ break;
+
case _ENTITY_NOGRAB:
ScriptVariant_ChangeType(*pretvar, VT_INTEGER);
@@ -1163,6 +1171,15 @@ HRESULT openbor_set_entity_property(ScriptVariant **varlist, ScriptVariant **pre
break;
+ case _ENTITY_NEXT_ATTACK_TIME:
+
+ if (SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
+ {
+ handle->nextattack = temp_int;
+ }
+
+ break;
+
case _ENTITY_NOGRAB:
if (SUCCEEDED(ScriptVariant_IntegerValue(varlist[ARG_VALUE], &temp_int)))
