ActionMap:Bind(actionName: string, callback: ActionCallback): () -> ()
Client OnlyAttaches a callback handler to an explicit action name within the mapping. Returns an unbind clean-up function wrapper.
Parameters
actionName*string | Target keyword to intercept. |
callback*ActionCallback | Function fired upon state change inputs, receiving ('Begin' | 'Change' | 'End') and the InputObject context parameters. |
Returns
functionAn explicit unbind wrapper handler that disconnects the tracking route.
local unbindSprint = CharacterInputMap:Bind("Sprint", function(state, inputObj)
if state == "Begin" then
print("Sprinting active")
end
end)