Reply To: Manual change of weather at any time and anywhere

Home / Forums / Modders Corner / Mafia Editing / Mafia II mods / Manual change of weather at any time and anywhere / Reply To: Manual change of weather at any time and anywhere

Bank Notes: 6,910
June 3, 2012 at 7:03 pm #12540

another thing:

 

ply=game.game:GetActivePlayer() is useless in your script.

 

in my topic on animation it’s useful because :

Example.

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
:AnimPlay(“sc_man_smoke_in”, false)end,

function(l_3_0)return ply
:AnimPlay(“sc_man_smoke_out”, false)end,

function(l_4_0)return ply
:SetControlStyle(enums.ControlStyle.FREE)end})

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

This is the same thing

DelayBuffer:Insert(function(l_1_0)CommandBuffer:Insert(l_6_0,{

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

function(l_2_0)return game.game:GetActivePlayer():AnimPlay(“sc_man_smoke_in”, false)end,

function(l_3_0)return game.game:GetActivePlayer():AnimPlay(“sc_man_smoke_out”, false)end,

function(l_4_0)return game.game:GetActivePlayer():SetControlStyle(enums.ControlStyle.FREE)end})

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