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

pub unsafe extern "C" fn end_frame(arg1: *mut BattleObjectModuleAccessor) -> f32

Returns the total amount of frames of the battle object's current animation as a float.

Arguments

Example

// if your are doing an aerial and your current frame is 5 or fewer frames away from the end of the anim, transition to FALL
if MotionModule::end_frame(module_accessor) - MotionModule::frame(module_accessor) <= 5 {
    StatusModule::change_status_request_from_script(module_accessor, *FIGHTER_STATUS_KIND_WAIT, true);
}