Okay, heres my script
ImportScript("\\Library\\LibTable.lua") -- imports the LibTable library
ImportScript("\\Library\\LibPed.lua") -- imports the LibPed library
local l_0_0 = false
MissionSetup = function() -- basic mission setup function which is used in almost all bully scripts
local l_1_0 = -550 -- X coords
local l_1_1 = 133.3 -- Y coords
local l_1_2 = 46.14702988 -- Z coords
PlayerSetHealth(200) -- gives the player 200 health
AreaTransitionXYZ(32, l_1_0, l_1_1, l_1_2)
SoundPlayStream("MS_DishonorableFight.rsm", 0.3)
end
Prep = function()
Bif = PedCreateXYZ(33, -544, 130, 46)
PedSetHealth(Bif, 800)
PedSetActionTree(Bif,"/Global/P_Bif","Act/Anim/P_Bif.act")
LoadActionTree("P_Bif")
LoadAnimationGroup("Boxing")
end
Towny = function()
Edgar = PedCreateXYZ(91, -544, 130, 46)
PedSetHealth(Edgar, 800)
PedSetActionTree(Edgar,"/Global/DO_Striker_A","Act/Anim/DO_Striker_A.act")
LoadActionTree("DO_Striker")
LoadAnimationGroup("DO_Striker")
end
Bully = function()
Russell = PedCreateXYZ(75, -545, 135, 46)
PedSetStatsType(Russell,"STAT_BOSS_RUSSELL")
PedSetActionTree(Russell,"/Global/BOSS_Russell","Act/Anim/BOSS_Russell.act")
PedSetHealth(Russell, 800)
LoadActionTree("BOSS_Russell")
LoadAnimationGroup("BOSS_Russell")
end
Ted = function()
Jock = PedCreateXYZ(19, -544, 130, 46)
PedSetActionTree(Jock,"/Global/J_Ted","Act/Anim/J_Ted.act")
PedSetHealth(Jock, 500)
LoadActionTree("J_Ted")
LoadAnimationGroup("J_Ted")
end
Ass = function()
Darby = PedCreateXYZ(37, -545, 135, 46)
PedSetActionTree(Darby,"/Global/BOSS_Darby","Act/Anim/BOSS_Darby.act")
PedSetHealth(Darby, 800)
LoadActionTree("BOSS_Darby")
LoadAnimationGroup("Boxing")
LoadAnimationGroup("BOSS_Darby")
end
main = function() -- Main mission function
Towny()
Bully()
PedAttack(Edgar, Russell, 3)
PedAttack(Russell, Edgar, 3)
end
Edit: Now it worked, i was trying to put ActionTree("DO_Edgar") and his AI