Skip to content

Zenkai Opcode SetEntityPosition

Johnathon edited this page Sep 19, 2026 · 2 revisions

SetEntityPosition

Directly sets an entity's position (a teleport, not a move-toward — see WalkToPosition/FlyToPosition for the animated versions).

Syntax

SetEntityPosition(charIdx, x, y)

Parameters

charIdx
Integer
Character roster index.

x
Integer
New X.

y
Integer
New Y.

Remarks

Directly sets an entity's position (a teleport, not a move-toward — see WalkToPosition/FlyToPosition for the animated versions).

Examples

Minimal illustrative encoding (synthetic, not from a real ROM script):

0x00, N           // PushByte(charIdx)
0x00, N           // PushByte(x)
0x00, N           // PushByte(y)
0x02, 0x90        // Step -> BytecodeVM_SetEntityPosition

See Also

Applies To

Game Notes
Legacy of Goku 2 Supported

Clone this wiki locally