MCPcopy Create free account
hub / github.com/Farama-Foundation/ViZDoom / SaveCurrentScript

Method SaveCurrentScript

src/vizdoom/src/fragglescript/t_func.cpp:4424–4436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4422//==========================================================================
4423
4424DRunningScript *FParser::SaveCurrentScript()
4425{
4426 DFraggleThinker *th = DFraggleThinker::ActiveThinker;
4427 if (th)
4428 {
4429 DRunningScript *runscr = new DRunningScript(Script->trigger, Script, Script->MakeIndex(Rover));
4430
4431 // hook into chain at start
4432 th->AddRunningScript(runscr);
4433 return runscr;
4434 }
4435 return NULL;
4436}
4437
4438//==========================================================================
4439//

Callers

nothing calls this directly

Calls 2

MakeIndexMethod · 0.80
AddRunningScriptMethod · 0.80

Tested by

no test coverage detected