Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
GetItemEntityPosition.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
npc.h
"
3
4
API_CALLABLE(N(GetItemEntityPosition)) {
5
Bytecode
* args = script->ptrReadPos;
6
ItemEntity
* entity =
get_item_entity
(
evt_get_variable
(script, *args++));
7
8
evt_set_variable
(script, *args++, entity->
pos
.
x
);
9
evt_set_variable
(script, *args++, entity->
pos
.
y
);
10
evt_set_variable
(script, *args++, entity->
pos
.
z
);
11
return
ApiStatus_DONE2
;
12
}
ItemEntity::pos
Vec3f pos
Definition
common_structs.h:1143
Vec3f::z
f32 z
Definition
common_structs.h:102
Vec3f::x
f32 x
Definition
common_structs.h:100
Vec3f::y
f32 y
Definition
common_structs.h:101
ItemEntity
Definition
common_structs.h:1139
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
get_item_entity
ItemEntity * get_item_entity(s32 itemEntityIndex)
Definition
item_entity.c:219
evt_set_variable
s32 evt_set_variable(Evt *script, Bytecode var, s32 value)
Definition
evt.c:1847
npc.h
src
common
GetItemEntityPosition.inc.c
Generated by
1.10.0