Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
SetEntityPositionF.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "map.h"
3
4
API_CALLABLE(N(SetEntityPositionF)) {
5
Bytecode
* args = script->ptrReadPos;
6
s32 entityIndex =
evt_get_variable
(script, *args++);
7
f32 x =
evt_get_variable
(script, *args++);
8
f32 y =
evt_get_variable
(script, *args++);
9
f32 z =
evt_get_variable
(script, *args++);
10
Entity
* entity =
get_entity_by_index
(entityIndex);
11
12
entity->
pos
.
x
= x;
13
entity->
pos
.
y
= y;
14
entity->
pos
.
z
= z;
15
return
ApiStatus_DONE2
;
16
}
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
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:1690
Entity
Definition
common_structs.h:550
Entity::pos
Vec3f pos
Definition
common_structs.h:574
src
world
common
todo
SetEntityPositionF.inc.c
Generated by
1.10.0