Paper Mario DX
Paper Mario (N64) modding
 
Loading...
Searching...
No Matches
CheckVineTriggerDist.inc.c
Go to the documentation of this file.
1#include "common.h"
2#include "npc.h"
3
4API_CALLABLE(N(CheckVineTriggerDist)) {
5 f32 var1 = script->varTable[0] - script->varTable[3];
6 f32 var2 = script->varTable[1] - script->varTable[4];
7 f32 var3 = script->varTable[2] - script->varTable[5];
8
9 script->varTable[0] = SQ(var1) + SQ(var2) + SQ(var3) < SQ(60.0f);
10
11 return ApiStatus_DONE2;
12}
#define ApiStatus_DONE2
Definition evt.h:118
#define SQ(x)
Definition macros.h:166