Add OnActorKill & OnEnemyDefeat hooks (#3112)

* Add OnActorKill & OnEnemyDefeat hooks

* Remove commented out code

* Re-run build

* Add missing include statements
This commit is contained in:
Pepe20129
2023-09-10 19:23:43 +02:00
committed by GitHub
parent bba0a54dbf
commit 5cf0eeef52
60 changed files with 343 additions and 128 deletions

View File

@@ -1147,6 +1147,7 @@ s32 func_8002D53C(PlayState* play, TitleCardContext* titleCtx) {
}
void Actor_Kill(Actor* actor) {
GameInteractor_ExecuteOnActorKill(actor);
actor->draw = NULL;
actor->update = NULL;
actor->flags &= ~ACTOR_FLAG_TARGETABLE;