Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
SetEntityPosition.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
3
API_CALLABLE(N(
SetEntityPosition
)) {
4
Bytecode
* args =
script
->ptrReadPos;
5
s32
entityIndex
=
evt_get_variable
(
script
, *args++);
6
s32 x =
evt_get_variable
(
script
, *args++);
7
s32 y =
evt_get_variable
(
script
, *args++);
8
s32 z =
evt_get_variable
(
script
, *args++);
9
Entity
*
entity
=
get_entity_by_index
(
entityIndex
);
10
11
entity
->pos.x = x;
12
entity
->pos.y = y;
13
entity
->pos.z = z;
14
return
ApiStatus_DONE2
;
15
}
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
get_entity_by_index
Entity * get_entity_by_index(s32 index)
Definition
entity.c:530
evt_get_variable
s32 evt_get_variable(Evt *script, Bytecode var)
Definition
evt.c:1689
Entity
Definition
common_structs.h:551
src
world
common
todo
SetEntityPosition.inc.c
Generated by
1.10.0