Skip to content

Return the NPC's velocity from NPC::getVelocity - #1292

Open
r4sheed wants to merge 1 commit into
openmultiplayer:masterfrom
r4sheed:fix/npc-get-velocity
Open

r4sheed wants to merge 1 commit into
openmultiplayer:masterfrom
r4sheed:fix/npc-get-velocity

Conversation

@r4sheed

@r4sheed r4sheed commented Nov 4, 2026

Copy link
Copy Markdown

NPC::getVelocity returned the player's position, so NPC_GetVelocity gave back the NPC's coordinates instead of its velocity. It now returns velocity_, the value setVelocity writes and the syncs send. Only reads of an NPC's velocity are affected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant