Reply To: Animation for human entity

Bank Notes: 650
June 1, 2012 at 11:53 am #12497

Hi, so here is another useful animation.

 

Sleep in Joe’s flat + auto save. It works on “cnt_free_ride_game”.

I got it for F3 lua button.

 

http://www.youtube.com/watch?v=1EB79ix9HEM

 

 

ply=game.game:GetActivePlayer()

DelayBuffer:Insert(function(l_1_0)

CommandBuffer:Insert(l_6_0,{

function(l_1_0)return ply:SetControlStyle(enums.ControlStyle.LOCKED)end,

function(l_2_0)return ply:SetPhysState(enums.PhysicsState.DISABLED)end,

function(l_3_0)return game.gfx:SetWeatherTemplate(“DT02NewStart1”)end,

function(l_4_0)return game.game:ChangePlayerModel(“vitspo”)end,

function(l_5_0)return ply:AnimPlay(“sc_sit_bench2_in”, false)end,

function(l_6_0)return ply:AnimPlay(“sc_Vito_sleep_L”, false)end,

function(l_7_0)return game.hud:FaderFadeOut(2000)end,

function(l_8_0)return game.game:SaveGame(1)end,

function(l_9_0)return game.gfx:SetWeatherTemplate(“DT02part02JoesFlat”)end,

function(l_10_0)return ply:AnimPlay(“sc_Vito_sleep_L”, false)end,

function(l_11_0)return game.hud:FaderFadeIn(2000)end,

function(l_12_0)return ply:AnimPlay(“sc_Vito_wakeup_L”, false)end,

function(l_13_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end,

function(l_14_0)return ply:SetPhysState(enums.PhysicsState.ENABLE)end})

end,{l_1_0},500,1,false)

 

 

 

How to wake up if you continue the story “cnt_free_ride_game”.

I got it for F4 lua button.

 

http://www.youtube.com/watch?v=I5KVAn3gHys

 

 

ply=game.game:GetActivePlayer()

DelayBuffer:Insert(function(l_1_0)

CommandBuffer:Insert(l_6_0,{

function(l_1_0)return game.gfx:SetWeatherTemplate(“DT02part02JoesFlat”)end,

function(l_2_0)return ply:AnimPlay(“sc_Vito_sleep_L”, false)end,

function(l_3_0)return game.hud:FaderFadeIn(2000)end,

function(l_4_0)return ply:AnimPlay(“sc_Vito_wakeup_L”, false)end,

function(l_5_0)return ply:SetControlStyle(enums.ControlStyle.FREE)end,

function(l_6_0)return ply:SetPhysState(enums.PhysicsState.ENABLE)end})

end,{l_1_0},500,1,false)