DiosSasuke Posted April 28, 2018 Share Posted April 28, 2018 I need help How do I make my ped attack my enemies and not me and how do I disappear from time to time? isobu = createTeam("isobu",255,0,0) function isobu(player) local px,py,pz = getElementPosition(player) setPlayerTeam ( player, isobu ) objeto = createObject(2780, px,py,pz) setTimer(destroyElement, 2000, 1, objeto) setPedAnimation(thePed, "ped", "block") local isob = exports [ "slothbot" ]:spawnBot ( px, py + 2, pz, 0, 302, 0, 0, isobu, 37, "hunting", true ) end addCommandHandler("kuchiyose-isobu3", isobu) Link to comment
Zorgman Posted May 3, 2018 Share Posted May 3, 2018 isobu_team = createTeam("isobu",255,0,0) function isobu_func(player) local px,py,pz = getElementPosition(player) setPlayerTeam ( player, isobu_team ) objeto = createObject(2780, px,py,pz) setTimer(destroyElement, 2000, 1, objeto) setPedAnimation(player, "ped", "fightb_block") exports [ "slothbot" ]:spawnBot ( px, py + 2, pz, 0, 302, 0, 0, isobu_team, 37, "hunting",nil) if not disappearFromTimeToTimeTimer then local timeint = math.random(10000,60000) disappearFromTimeToTimeTimer = setTimer(setElementAlpha,timeint,0,player,0) disappearFromTimeToTimeTimer2 = setTimer(setElementAlpha,timeint*1.25,0,player,255) end end addCommandHandler("kuchiyose-isobu3", isobu_func) Heyo, this (untested) code should do what you want. Link to comment
DiosSasuke Posted May 10, 2018 Author Share Posted May 10, 2018 thanks, that I must use so when putting the command appear several ped and not one? 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