Luduvo Contents
Theme
On this page

MoveIntent

where a character wants to move, and which way it should face

Fields

5 members

jump: boolean

whether the jump action is active

shiftLock: boolean

whether shift-lock camera alignment is active

targetYaw: number

desired character facing angle in radians

x: number

lateral movement input along the horizontal axis

z: number

forward and backward movement input

Reading the Input a Character Acts On

Lifecycle: Server

The intent reports the input the character is moving with this tick, and targetYaw is an angle in radians.

Luau
game.World.System("intent_log", game.World.Query("Character"), function(q)	for i = 1, q.count do		local character = q.Entity[i]		local intent = character:GetMoveIntent()		if intent and intent.jump then			print(string.format("%s jumped facing %.2f rad", character.Name, intent.targetYaw))		end	endend)