Code:
--==============================================================
-- _____ _____ _____ __ _____ _____ _____ _____ _____
-- | _ | __ | |__| | __| |_ _| | __| __|
-- | __| -| | | | | __| --| | | |__ | | |
-- |__| |__|__|_____|_____|_____|_____| |_| |_____|_____|
--
-- Copyright 2006 nFlavor corp. All Rights Reserved.
--==============================================================
---------- walk_stand_idle
function walk_stand_idle_begin(actor, time)
actor:PlayAnimation("lobby_stop", 1, time)
actor:PlayAnimation("lobby_stop", 1, time, "hair")
actor:PlayFaceAction( 'face_default' )
end
function walk_stand_idle_proc(actor, time)
end
function walk_stand_idle_end(actor, time)
end
---------- walk_straight
function walk_straight_begin(actor, time)
actor:PlayAnimation("lobby_run", 1, time)
actor:PlayAnimation("lobby_run", 1, time, "hair")
actor:PlayFaceAction( 'face_default' )
end
function walk_straight_proc(actor, time)
end
function walk_straight_end(actor, time)
end
---------- walk_left
function walk_stand_left_begin(actor, time)
actor:PlayAnimation("lobby_walk_turn_L", 1, time)
actor:PlayAnimation("lobby_walk_turn_L", 1, time, "hair")
actor:PlayFaceAction( 'face_default' )
end
function walk_stand_left_proc(actor, time)
end
function walk_stand_left_end(actor, time)
end
---------- walk_right
function walk_stand_right_begin(actor, time)
actor:PlayAnimation("lobby_walk_turn_R", 1, time)
actor:PlayAnimation("lobby_walk_turn_R", 1, time, "hair")
actor:PlayFaceAction( 'face_default' )
end
function walk_stand_right_proc(actor, time)
end
function walk_stand_right_end(actor, time)
end
---------- walk_up
function walk_up_begin(actor, time)
actor:PlayAnimation("lobby_stair_up", 1, time)
actor:PlayAnimation("lobby_stair_up", 1, time, "hair")
--actor:PlaySound("run_stairdown.wav",0)
actor:PlayFaceAction( 'face_default' )
end
function walk_up_proc(actor, time)
end
function walk_up_end(actor, time)
--actor:StopSound("run_stairdown.wav")
end
function walk_up_onmsg(stateMachine, msg)
end
---------- walk_down
function walk_down_begin(actor, time)
actor:PlayAnimation("lobby_stair_down", 1, time)
actor:PlayAnimation("lobby_stair_down", 1, time, "hair")
--actor:PlaySound("run_stairdown.wav",0)
end
function walk_down_proc(actor, time)
end
function walk_down_end(actor, time)
--actor:StopSound("run_stairdown.wav")
end
function walk_down_onmsg(stateMachine, msg)
end
---------- walk_jump
function walk_jump_begin(actor, time)
actor:PlayAnimation("lobby_walk_jump", 0, time)
actor:PlayAnimation("lobby_walk_jump", 0, time, "hair")
end
function walk_jump_proc(actor, time)
end
function walk_jump_end(actor, time)
actor:PlaySound_Road( "motion_Walk_Jump_D",1 )
end
function walk_jump_onmsg(stateMachine, msg)
end