| 635 | } |
| 636 | |
| 637 | void aiSamirPest::OnDestroy(int me_handle, tOSIRISEVTDESTROY *evt) { |
| 638 | mprintf(0, "OnDestroy\n"); |
| 639 | |
| 640 | msafe_struct mstruct; |
| 641 | |
| 642 | mstruct.objhandle = memory->tail_handle; |
| 643 | mstruct.killer_handle = OBJECT_HANDLE_NONE; |
| 644 | mstruct.damage_type = GD_SCRIPTED; |
| 645 | mstruct.amount = 1000.0f; |
| 646 | |
| 647 | MSafe_CallFunction(MSAFE_OBJECT_DAMAGE_OBJECT, &mstruct); |
| 648 | } |
| 649 | |
| 650 | void aiSamirPest::OnInterval(tOSIRISEventInfo *data) { |
| 651 | float frame; |
nothing calls this directly
no test coverage detected