TopAz Posted March 31, 2012 Posted March 31, 2012 Is it possible to make a system that, if the bot mode is hunting and the subject is on a car then, if the bot is near on any car, he will try to enter that car and chase the subject. And also if the bot mode is follow and if the subject is on his own team, then he will enter the subject's car as passenger. I hope you got my point.
Mini-Me Posted August 5, 2012 Posted August 5, 2012 step1: in editor, add the Slothbot to definitions.step2: place the flags as waypoints. I'm trying to do exactly that, but it fails because the button for the flags does not appear anymore. Debugscript outputs a relevant message: WARNING: editor_gui\client\me_gui.lua:172: Bad file path @ 'guiStaticImage' [] Version string of the server is "MTA:SA Server v1.3-release-4400". EDIT: Oh well, the lack of any documentation on how to do the path creation in the editor made me forget I had to scroll the mouse when I'm hovering over the default icons for objects, markers, etc.. I now at least have the generic icon that shows up when the actual Icon can't be loaded. But the point that the actual icon (flag) meant to be used doesn't show up still remains.
Slothman Posted August 5, 2012 Author Posted August 5, 2012 Is it possible to make a system that, if the bot mode is hunting and the subject is on a car then, if the bot is near on any car, he will try to enter that car and chase the subject. And also if the bot mode is follow and if the subject is on his own team, then he will enter the subject's car as passenger. I hope you got my point. no it is not, since peds cant enter or exit vehicles last I checked.
Xerionus Posted January 9, 2013 Posted January 9, 2013 Can someone tell me (or make video?), step by step, how to spawn bots? I spend one hour trying to spawn this bots and searching in this topic and on wiki how to do that, but I really don't know how to do this.
HerculePoirot Posted March 21, 2014 Posted March 21, 2014 I have a question, can these functions used for a player rather than bot? For eg, making a player follow someone.
C0b0ll Posted June 7, 2014 Posted June 7, 2014 (edited) Very nice script . I created a little script to add one hunting bot and I created some path in the map editor, but how to use my paths ? I tried to simply add the map file in my meta.xml : <map src="myWaypoints.map" dimension="0"></map> But the bot doesn't follow my defined paths. It is probably a stupid question, but I didn't find any answer to my question on the forum and Google. Thanks a lot. Edited June 8, 2014 by Guest
C0b0ll Posted June 7, 2014 Posted June 7, 2014 Can someone tell me (or make video?), step by step, how to spawn bots? I spend one hour trying to spawn this bots and searching in this topic and on wiki how to do that, but I really don't know how to do this. I also would like to know how to spawn bots. Download the last version of slothbot here Put the zip in "Your_MTA_directory\server\mods\deathmatch\resources\" directory. In your mtaserver.conf, add the reference to slothbot resource adding the following line : <resource src="Slothbot" startup="1" protected="0" /> In your client side mod, add the following line (do'nt forget to define the x, y and z variables) : exports.slothbot:spawnBot(x, y, z, 0) You should have a hunting bot on your server. +++
C0b0ll Posted June 9, 2014 Posted June 9, 2014 Very nice script .I created a little script to add one hunting bot and I created some path in the map editor, but how to use my paths ? I tried to simply add the map file in my meta.xml : <map src="myWaypoints.map" dimension="0"></map> But the bot doesn't follow my defined paths. It is probably a stupid question, but I didn't find any answer to my question on the forum and Google. Thanks a lot. Hi, I read the code and the algorithm just select a way point closer of the destination than the current way point... I'll code my own bots and add the A* algorithm. Thanks for this script . +
Captain Cody Posted August 2, 2014 Posted August 2, 2014 Is there any way I can make a bot/dog that follows a certain player and attacks if someone attacks the player ive tryed everything but nothing seams to work the dog always attacks the player who spawns it
Captain Cody Posted August 3, 2014 Posted August 3, 2014 function Spawndog (source) local x,y,z = getElementPosition (source) local rot= 90 local skin=79 local interior=0 local dimension=0 local team=GetPlayerTeam (source) local weapon=0 local mode= "following" local modesubject=source call (getResourceFromName("slothbot"), "spawnBot", x, y+5, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) end addCommandHandler("spawndog", Spawndog)
psyduck Posted December 1, 2014 Posted December 1, 2014 im trying to make dayz-like bot spawning but i know my code is gaberge function napierdalaczbotow (source) outputChatBox("spawn on") - function napierdalacz ( ) local x,y,z = getElementPosition (source) local rot= 90 local skin=math.random(220) local interior=0 local dimension= 0 local team = nil local weapon=1 local mode= "chasing" local modesubject=source bot1 = call (getResourceFromName("slothbot"), "spawnBot", x+math.random(20), y+math.random(20), z, rot, skin, interior, dimension, team, weapon, mode, modesubject) bot2 = call (getResourceFromName("slothbot"), "spawnBot", x-math.random(20), y+math.random(30), z, rot, skin, interior, dimension, team, 6, mode, modesubject) setPedHeadless(bot1, true) end setTimer ( napierdalacz, 30000, 0 ) end addCommandHandler("botstart", napierdalaczbotow) is there any better way to do this?
SEV3NS Posted December 8, 2014 Posted December 8, 2014 does it work? can you make a computer in human for follow you with a weapon with this script?
mongui Posted July 9, 2016 Posted July 9, 2016 "onBotFindEnemy" event is not working , it only works when a bot is killed; is it a refreshing problem?
kevincouto6 Posted June 12, 2018 Posted June 12, 2018 On 05/08/2012 at 20:08, Slothman said: no it is not, since peds cant enter or exit vehicles last I checked. New Link for download please
Zorgman Posted June 24, 2019 Posted June 24, 2019 https://wiki.multitheftauto.com/wiki/Slothman/Slothbot all you need is here
rulo Posted June 1, 2020 Posted June 1, 2020 Hello, how are you, could you help me? In the server logs it gives me the following error in the server.Lua line 33 file: TrabajoHacker/server.Lua:33: exports: Call to non-running server resource (slothbot) [string "?"] [DUP x12008] The line in the server.Lua file is as follows: setTimer(function() exports ["slothbot"]:setBotAttackEnabled(source, true) end, 50, 0) setTimer(function() exports ["slothbot"]:setBotAttackEnabled(source, true) end, 50, 0) Sorry if the English is not good use the translator
DarkChemical Posted June 1, 2020 Posted June 1, 2020 You'll have to turn on the resources slothbot first.
sirrjohn Posted August 16, 2023 Posted August 16, 2023 I know this thread is old, but how can i make bots not spawn in water?
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