Jump to content

Sloth Bot Help


AHSS

Recommended Posts

Posted

i tried to make a bot that follows

i made like this

the slothbot.edf:

  
"AI"> 
    "pathpoint" friendlyname="Path point" icon="edf/flag/flag.png"> 
        "position" type="coord3d" default="410.5979,-1543.6353,32.2734"/> 
        "2993" rotation="0,0,0"/> 
    
  
    
  

and in the script:(another resource)

  
local gResRoot = getResourceRootElement(getThisResource()) 
  
function spawnbots() 
    local bot = call (getResourceFromName("Slothbot"), "spawnBot", 1498.3390,-1582.3936,13.5469, 0, 192, 0, 0, 0, 0, "following", "pathpoint") 
end 
addEventHandler("onResourceStart", gResRoot, spawnbots) 
  

the bot spawns be he stand till untill i approach then he attacks me but he doesnt go to the pathpoint

also i did this

  
function spawnbots() 
    local player = getPlayerFromName ("Name") 
    local bot = call (getResourceFromName("Slothbot"), "spawnBot", 1498.3390,-1582.3936,13.5469, 0, 192, 0, 0, 0, 0, "following", player) 
end 
addEventHandler("onResourceStart", gResRoot, spawnbots) 
  

my name was correct no errors but same bot just stand untill i approach then he attacks me

  • Moderators
Posted

I can't understand you, you want that this bot follow you but he attacks you instead ??

The rEvolution is coming ...

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...