diff --git a/src/xrGame/alife_object.cpp b/src/xrGame/alife_object.cpp index e932d257222..7b350c6f856 100644 --- a/src/xrGame/alife_object.cpp +++ b/src/xrGame/alife_object.cpp @@ -22,6 +22,13 @@ void CSE_ALifeObject::spawn_supplies(LPCSTR ini_string) if (!xr_strlen(ini_string)) return; + luabind::functor funct; + if (GEnv.ScriptEngine->functor("ai_stalker.CSE_ALifeObject_spawn_supplies", funct)) + { + if (funct(this, ID, ini_string)) + return; + } + #pragma warning(push) #pragma warning(disable : 4238) IReader reader((void*)ini_string, xr_strlen(ini_string));