benilla-re systems structs docs

TargetNearestEnemy

Lua global function

Function
Script::TargetNearestEnemy ui
Meaning
Selects the next nearby enemy verified, proof one
Registered in
global table s_gameScriptFunctions ui
Registrar pair
0x83e030
Arguments
1 exact
Returns
0 values exact, kinds () agree

Arguments is the largest Lua stack index the function reads: a floor, never a check. Returns lists the number and the kinds of the values it pushes; ? is unknown. what the columns mean.

Cited in 1