Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
RemovePadlock.inc.c
Go to the documentation of this file.
1#include "common.h"
2#include "npc.h"
3
4API_CALLABLE(N(RemovePadlock)) {
5 Entity* entity = get_entity_by_index(script->varTable[0]);
6
7 entity->flags |= ENTITY_FLAG_USED;
8 return ApiStatus_DONE2;
9}
@ ENTITY_FLAG_USED
Definition enums.h:2633
#define ApiStatus_DONE2
Definition evt.h:118
Entity * get_entity_by_index(s32 index)
Definition entity.c:530