Jump to content

Recommended Posts

Posted

Доброго времени суток!

У меня возникла проблема с настройкой slothbot

function Spawnsoldier () 
local x,y,z = 0,0,5.75 
local rot=0 
local skin=285 
local interior=0 
local dimension= 0 
local leader= Player 
local enemy=false 
local team=false 
local weapon=0 
local mode="following" 
local modesubject= x,y,z 
call (getResourceFromName("slothbot"), "spawnBot", 0,0,12.75, rot, skin, interior, dimension, false, 10, following, modesubject) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), Spawnsoldier) 

Суть проблемы: Бот атакует игрока

Кто может поправьте)))))

Posted

мы все телепаты и знаем что да как в самом ресурсе, настроек достаточно)))))

http://bpb-team.ru/ - особый вид людей.
http://vk.com/mtapro - турниры и мероприятия в мта

<Easterdie> kye why samp has not updates or it make slowly?
<Kyeman> I have not src of SA-MP and have use hex editor for change version to next 0.3a, 0.3c, 0.3x, 0.3z etc.

  • 3 weeks later...
Posted

Может стоит посмотреть, что возвращают onBotFindEnemy,onBotFollow,getBotTeam,getBotMode.

В официальном Discord MTA, можно получать ответы оперативно и живее обсуждать темы: https://discord.gg/aD5jtRS

Posted
  
local mode="following"  <-- 
  
call (getResourceFromName("slothbot"), "spawnBot", 0,0,12.75, rot, skin, interior, dimension, false, 10, following, modesubject) <-- тут нужно заменить following на mode, либо "following" 
  

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...