Reply To: LUA script (Entity)

Home / Forums / Modders Corner / Mafia Editing / Mafia II mods / LUA script (Entity) / Reply To: LUA script (Entity)

Bank Notes: 6,910
February 27, 2013 at 12:58 am #16574

test this

 

DelayBuffer:Insert(function(l_1_0)

CommandBuffer:Insert(l_1_0,{

function(l_1_0)return game.sds:ActivateStreamMapLine(“fr_bomber_m01_load”)end,

function(l_2_0)

game.entitywrapper:GetEntityByName(“enemy1”):Activate()

game.entitywrapper:GetEntityByName(“enemy1”):SetPos(Math:newVector(-1315, 1005,-19))

game.entitywrapper:GetEntityByName(“enemy1”):SetDir(Math:newVector( 0,-1,0))

game.entitywrapper:GetEntityByName(“enemy1”):InventoryAddWeapon(5,92)

game.entitywrapper:GetEntityByName(“enemy1”):Attack(game.game:GetActivePlayer())

end})

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

 

one thing, the injector has not been improved since December 2010.