
i need some help here
i copied post from the "Lua/Scripts/Questions"
BureX has written
Idk how to make them to stand to the barricade and destroy it.
Is it possible to do that ?
function ai_gotot(id,x,y)
if player(id,"bot") then
if player(id,"team") == 1 then
local c=math.random(1,11)
if c==1 then
ai_goto(id,12,6)
ai_rotate(id,180)
ai_attack(id)
elseif c==2 then
ai_goto(id,8,17)
ai_rotate(id,90)
ai_attack(id)
elseif c==3 then
ai_goto(id,18,20)
ai_rotate(id,1)
ai_attack(id)
elseif c==4 then
ai_goto(id,25,19)
ai_rotate(id,1)
ai_attack(id)
elseif c==5 then
ai_goto(id,21,6)
ai_rotate(id,180)
ai_attack(id)
elseif c==6 then
ai_goto(id,35,6)
ai_rotate(id,180)
ai_attack(id)
elseif c==7 then
ai_goto(id,52,19)
ai_rotate(id,-90)
ai_attack(id)
elseif c==8 then
ai_goto(id,46,32)
ai_rotate(id,1)
ai_attack(id)
elseif c==9 then
ai_goto(id,34,21)
ai_rotate(id,90)
ai_attack(id)
elseif c==10 then
ai_goto(id,25,11)
elseif c==11 then
ai_goto(id,43,20)
end
end
end
end