Reply To: Animation for human entity

Bank Notes: 6,910
January 8, 2013 at 3:05 pm #16368

Animation in Empire Arms Hotel (arpatro.sds in city folder)

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_1_0)return ply:SetPhysState(enums.PhysicsState.DYNAMIC)end,

function(l_1_0)ply:SetDir(Math:newVector(x,y,0)) return ply:SetPos(Math:newVector(x,y,z))end,

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

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

function(l_1_0)return ply:SetPhysState(enums.PhysicsState.ENABLE)end,

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

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

 

Animation in Falcon Bar (falcone_satna.sds in shops folder)

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_1_0)return ply:SetPhysState(enums.PhysicsState.DYNAMIC)end,

function(l_1_0)ply:SetDir(Math:newVector(x,y,0)) return ply:SetPos(Math:newVector(x,y,z))end,

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

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

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

function(l_1_0)return ply:SetPhysState(enums.PhysicsState.ENABLE)end,

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

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