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
5
6API_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
15 return ApiStatus_DONE2;
16}
AnimScript Entity_SimpleSpring_AnimLaunch
s16 AnimScript[]
#define ApiStatus_DONE2
Definition evt.h:118
s32 Bytecode
Definition evt.h:7
#define ApiStatus_BLOCK
Definition evt.h:116
Entity * get_entity_by_index(s32 index)
Definition entity.c:530
void play_model_animation(s32, s16 *)
Definition animator.c:1101
s32 evt_get_variable(Evt *script, Bytecode var)
Definition evt.c:1690
s16 virtualModelIndex