Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
SetPlayerStatusPosYaw.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
3
API_CALLABLE(N(
SetPlayerStatusPosYaw
)) {
4
Bytecode
* args =
script
->ptrReadPos;
5
f32
x =
evt_get_float_variable
(
script
, *args++);
6
f32
y =
evt_get_float_variable
(
script
, *args++);
7
f32
z =
evt_get_float_variable
(
script
, *args++);
8
f32
yaw =
evt_get_float_variable
(
script
, *args++);
9
10
gPlayerStatus
.
pos
.
x
= x;
11
gPlayerStatus
.
pos
.
y
= y;
12
gPlayerStatus
.
pos
.
z
= z;
13
gPlayerStatus
.
targetYaw
= yaw;
14
return
ApiStatus_DONE2
;
15
}
PopupMenu_SelectedIndex
BSS s32 PopupMenu_SelectedIndex
Definition
8a860_len_3f30.c:84
PlayerStatus::targetYaw
f32 targetYaw
Definition
common_structs.h:2010
Vec3f::z
f32 z
Definition
common_structs.h:103
PlayerStatus::pos
Vec3f pos
Definition
common_structs.h:1996
Vec3f::x
f32 x
Definition
common_structs.h:101
Vec3f::y
f32 y
Definition
common_structs.h:102
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
evt_get_float_variable
f32 evt_get_float_variable(Evt *script, Bytecode var)
Definition
evt.c:1929
gPlayerStatus
PlayerStatus gPlayerStatus
Definition
77480.c:39
src
common
SetPlayerStatusPosYaw.inc.c
Generated by
1.10.0