sm64coopdx/docs/lua/examples/instant-clip.lua

12 lines
367 B
Lua
Raw Normal View History

-- name: Instant Clip
-- description: Press L trigger, profit!
function mario_update(m)
if (m.controller.buttonDown & L_TRIG) ~= 0 then -- If L pressed
set_mario_action(m, ACT_WALKING, 0) --set mario to walking so his vel is used
m.forwardVel = 400 --set Velocity to clip speed
end
end
-- hooks --
2022-03-19 04:30:53 +00:00
hook_event(HOOK_MARIO_UPDATE, mario_update)