Skip to content

Fix setAnalogControlState #567

Closed
@LosFaul

Description

@LosFaul

Edit: i cleaned up this topic, because it was a mess before

Is your feature request related to a problem? Please describe.
setAnalogControlState is not working when there is actual player input.

addEventHandler("onClientPreRender", root,
    function()
        local accelerate = getAnalogControlState("accelerate")
        setAnalogControlState("accelerate", accelerate * 0.1)
    end
)

in this example i try to modify the player input,
but setAnalogControlState has no effect

Describe the solution you'd like
Fix setAnalogControlState, so that it allows to modify player input

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions