[][src]Function smash::app::lua_bind::MotionModule::motion_kind

pub unsafe extern "C" fn motion_kind(
    arg1: *mut BattleObjectModuleAccessor
) -> u64

returns the hash of the current motion (animation)

Arguments

Example

// make up air universally cancelable
let curr_motion_kind = MotionModule::motion_kind(module_accessor);
if curr_motion_kind == smash::hash40("attack_air_b") {
    CancelModule::enable_cancel(module_accessor);
}