MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / FreeObjectScripts

Function FreeObjectScripts

Descent3/ObjScript.cpp:227–235  ·  view source on GitHub ↗

frees all scripts for an object.

Source from the content-addressed store, hash-verified

225
226// frees all scripts for an object.
227void FreeObjectScripts(object *objp, bool level_end) {
228 tOSIRISEventInfo ei;
229 ei.evt_destroy.is_dying = (level_end) ? 1 : 0;
230
231 if (!level_end)
232 Osiris_CallEvent(objp, EVT_DESTROY, &ei);
233
234 Osiris_DetachScriptsFromObject(objp);
235}
236
237// allocates and initializes the script for a trigger
238void InitTriggerScript(trigger *tp) {}

Callers 3

FreeScriptsForLevelFunction · 0.85
LGSObjectsFunction · 0.85
ObjDeleteFunction · 0.85

Calls 2

Osiris_CallEventFunction · 0.85

Tested by

no test coverage detected