Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
GetLastEventType.inc.c
Go to the documentation of this file.
1#include "common.h"
2
3API_CALLABLE(N(GetLastEventType)) {
4 Bytecode* args = script->ptrReadPos;
5 Actor* actor = get_actor(script->owner1.actorID);
6
7 actor->lastEventType = evt_get_variable(script, *args++);
8
9 return ApiStatus_DONE2;
10}
#define ApiStatus_DONE2
Definition evt.h:118
s32 Bytecode
Definition evt.h:7
s32 evt_get_variable(Evt *script, Bytecode var)
Definition evt.c:1690
Actor * get_actor(s32 actorID)
Definition actor_api.c:155