AHSS Posted April 19, 2011 Share Posted April 19, 2011 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 Link to comment
Moderators Citizen Posted April 21, 2011 Moderators Share Posted April 21, 2011 I can't understand you, you want that this bot follow you but he attacks you instead ?? 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