frees all scripts for an object.
| 225 | |
| 226 | // frees all scripts for an object. |
| 227 | void 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 |
| 238 | void InitTriggerScript(trigger *tp) {} |
no test coverage detected