[][src]Function smash::app::lua_bind::FighterMotionModuleImpl::get_cancel_frame

pub unsafe extern "C" fn get_cancel_frame(
    arg1: *mut BattleObjectModuleAccessor,
    arg2: Hash40,
    arg3: bool
) -> f32

Returns the earliest actionable frame of the specified motion

Arguments

Example

// allow characters to act of of back aerial 2 frames sooner than normal
if MotionModule::get_cancel_frame(module_accessor, Hash40::new("attack_air_b")) - MotionModule::frame(module_accessor) <= 2 {
    CancelModule::enable_cancel(module_accessor);
}