View Issue Details

IDProjectCategoryView StatusLast Update
0007187New Feature RequestsGeneralpublic2018-09-22 18:59
ReporterLeetWoovie Assigned To 
Status newResolutionopen 
Summary0007187: getPedMoveState returns false when moving in crouch state

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 )
addCommandHandler( "getMoveState", getMoveState )

TagsNo tags attached.



2012-07-17 15:41

reporter   ~~0017079

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


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