Skip to content

Commit

Permalink
Add CSE_ALifeObject_spawn_supplies callback for script usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloreck committed Jan 3, 2025
1 parent 0502e3b commit f40036c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/xrGame/alife_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ void CSE_ALifeObject::spawn_supplies(LPCSTR ini_string)
if (!xr_strlen(ini_string))
return;

luabind::functor<bool> 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));
Expand Down

0 comments on commit f40036c

Please sign in to comment.