Paper Mario DX
Paper Mario (N64) modding
Loading...
Searching...
No Matches
PlaySpringReboundAnimation.inc.c
Go to the documentation of this file.
1
#include "common.h"
2
#include "
animation_script.h
"
3
4
extern
AnimScript
Entity_SimpleSpring_AnimLaunch
;
5
6
API_CALLABLE(N(PlaySpringReboundAnimation)) {
7
Bytecode
* args = script->ptrReadPos;
8
Entity
* entity =
get_entity_by_index
(
evt_get_variable
(script, *args++));
9
10
if
(entity == NULL) {
11
return
ApiStatus_BLOCK
;
12
}
13
14
play_model_animation
(entity->
virtualModelIndex
,
Entity_SimpleSpring_AnimLaunch
);
15
return
ApiStatus_DONE2
;
16
}
Entity_SimpleSpring_AnimLaunch
AnimScript Entity_SimpleSpring_AnimLaunch
Definition
SimpleSpring_anim.c:94
animation_script.h
AnimScript
s16 AnimScript[]
Definition
animation_script.h:6
ApiStatus_DONE2
#define ApiStatus_DONE2
Definition
evt.h:118
Bytecode
s32 Bytecode
Definition
evt.h:7
ApiStatus_BLOCK
#define ApiStatus_BLOCK
Definition
evt.h:116
get_entity_by_index
Entity * get_entity_by_index(s32 index)
Definition
entity.c:530
play_model_animation
void play_model_animation(s32, s16 *)
Definition
animator.c:1101
evt_get_variable
s32 evt_get_variable(Evt *script, Bytecode var)
Definition
evt.c:1690
Entity
Definition
common_structs.h:550
Entity::virtualModelIndex
s16 virtualModelIndex
Definition
common_structs.h:562
src
world
common
util
PlaySpringReboundAnimation.inc.c
Generated by
1.10.0