長瀞早瀬 Posted January 12, 2015 Share Posted January 12, 2015 Доброго времени суток! У меня возникла проблема с настройкой 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) Суть проблемы: Бот атакует игрока Кто может поправьте))))) Link to comment
Easterdie Posted January 12, 2015 Share Posted January 12, 2015 мы все телепаты и знаем что да как в самом ресурсе, настроек достаточно))))) Link to comment
Fabervox Posted January 29, 2015 Share Posted January 29, 2015 Может стоит посмотреть, что возвращают onBotFindEnemy,onBotFollow,getBotTeam,getBotMode. Link to comment
The Creator Posted January 29, 2015 Share Posted January 29, 2015 local mode="following" <-- call (getResourceFromName("slothbot"), "spawnBot", 0,0,12.75, rot, skin, interior, dimension, false, 10, following, modesubject) <-- тут нужно заменить following на mode, либо "following" Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now