View Issue Details

IDProjectCategoryView StatusLast Update
0007187New Feature Requests[All Projects] Generalpublic2018-09-22 18:59
ReporterLeetWoovieAssigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status newResolutionopen 
Summary0007187: getPedMoveState returns false when moving in crouch state
Description

As the title says. Bind command below to Z and press it when crouch walking.

Steps To Reproduce

function getMoveState( command )
local player = getLocalPlayer()
local moveState = getPedMoveState( player )
outputChatBox( "current moveState is: " .. moveState, 0, 150, 0, true )
end
addCommandHandler( "getMoveState", getMoveState )

TagsNo tags attached.

Activities

Ca11um

2012-07-17 15:41

reporter   ~~0017079

https://dl.dropbox.com/u/47984043/MTA/Patches/getPedMoveState.patch

returns "crawl" when moving whilst crouching. Couldn't find any ways of detecting rolling (while crouching), or jumping/falling.

Ca11um

2012-07-17 16:22

reporter   ~~0017080

Last edited: 2012-07-19 09:41

Updated aforelinked patch. getPedMoveState now additionally returns "jump", "fall", and "climb" (and "crawl", as described in previous note).

EDIT: Also fixed it returning the wrong value when standing on a vehicle, or other elements.

Issue History

Date Modified Username Field Change