Matiaas97 Posted February 20, 2013 Share Posted February 20, 2013 I need a bot that can help me killing others players in the gamemode Basemode (Tactics). This is possible ? who can help me ? Necesito un bot que pueda ayudarme matando otros jugadores en el gamemode Basemode (Tactics). Esto es posible ? Quien puede ayudarme ? Link to comment
Ka3ax Posted February 20, 2013 Share Posted February 20, 2013 https://forum.multitheftauto.com/viewtop ... 08&t=25488 Link to comment
Matiaas97 Posted February 20, 2013 Author Share Posted February 20, 2013 https://forum.multitheftauto.com/viewtopic.php?f=108&t=25488 How is the command for active the bot ? Link to comment
Ka3ax Posted February 21, 2013 Share Posted February 21, 2013 You need this on the serverside function spawnBot (source) local x,y,z = getElementPosition (source) local rot= 90 local skin=13 local interior=0 local dimension= 0 local team=false -- you need to modifacate this with "your_Team" local weapon=26 local mode= "hunting" -- and modificate this to "following" local modesubject=source local slothbot = exports.slothbot slothbot:spawnBot(x, y+6, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) slothbot:spawnBot(x, y+7, z, rot, skin+7, interior, dimension, team, weapon, mode, modesubject) slothbot:spawnBot(x, y+8, z, rot, skin+23, interior, dimension, team, weapon, mode, modesubject) end addCommandHandler("spawnbot", spawnBot) Then You can tipe /createbot and 3 bots will be created. But in this code, the will attak you. So you need to get the bot in the same team like you The misstake is only, if bot shoot at bot. Then the are going to start a fight. You know need that this bots are not so AI like humans Link to comment
Matiaas97 Posted February 21, 2013 Author Share Posted February 21, 2013 You need this on the serverside function spawnBot (source) local x,y,z = getElementPosition (source) local rot= 90 local skin=13 local interior=0 local dimension= 0 local team=false -- you need to modifacate this with "your_Team" local weapon=26 local mode= "hunting" -- and modificate this to "following" local modesubject=source local slothbot = exports.slothbot slothbot:spawnBot(x, y+6, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) slothbot:spawnBot(x, y+7, z, rot, skin+7, interior, dimension, team, weapon, mode, modesubject) slothbot:spawnBot(x, y+8, z, rot, skin+23, interior, dimension, team, weapon, mode, modesubject) end addCommandHandler("spawnbot", spawnBot) Then You can tipe /createbot and 3 bots will be created. But in this code, the will attak you. So you need to get the bot in the same team like you The misstake is only, if bot shoot at bot. Then the are going to start a fight. You know need that this bots are not so AI like humans Thanks friend, but I'm not a scripter. What have i to do ? Put the text in a new file.lua inside of Slothbot.zip ? 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