Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
GetNpcCollisionHeight.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
npc.h
"
3
4
API_CALLABLE(N(GetNpcCollisionHeight)) {
5
Bytecode
* args = script->ptrReadPos;
6
s32 npcID =
evt_get_variable
(script, *args++);
7
Npc
* npc =
get_npc_safe
(npcID);
8
9
if
(npc != NULL) {
10
evt_set_variable
(script, *args++, npc->
collisionHeight
);
11
}
12
return
ApiStatus_DONE2
;
13
}
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
evt_get_variable
s32 evt_get_variable(Evt *script, Bytecode var)
Definition
evt.c:1690
evt_set_variable
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition
evt.c:1847
npc.h
get_npc_safe
Npc * get_npc_safe(s32 npcID)
Definition
npc.c:1010
Npc
Definition
common_structs.h:213
Npc::collisionHeight
s16 collisionHeight
Definition
common_structs.h:262
src
world
common
todo
GetNpcCollisionHeight.inc.c
Generated by
1.10.0