[−][src]Function smash::app::lua_bind::StatusModule::change_status_request_from_script
pub unsafe extern "C" fn change_status_request_from_script(
arg1: *mut BattleObjectModuleAccessor,
arg2: c_int,
arg3: bool
) -> u64
Changes the current status_kind for the object
Arguments
-
module_accessor
- Pointer to BattleObjectModuleAccessor -
'status_kind' - the STATUS_KIND const to change to
-
'unk' - we dunno
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); }