SkiZo Posted June 30, 2018 Share Posted June 30, 2018 (edited) Help me .. i created script like .. createProjectile when ped shoots.. what ever .. when i make it like this ... -- 1st Exemple createProjectile(localPlayer, 20, xw, yw, zw+1, 1.0,localPlayer,0,0,0,0,0,0.1) The ped shoot ( missels .. but to many ( as number of players ) if 5 then he shoot 5 .. and the missile can kill .. that's cool BUT when i put it like this.... ( and that what i need ) createProjectile(source, 20, xw, yw, zw+1, 1.0,localPlayer,0,0,0,0,0,0.1) bot shoot 1 missle and target 1 player and that missle doesn't damage . i mean even he shooting on other player the missle still targeting me everyshot .. .. any suggestions ? Edited June 30, 2018 by Legend<3 Link to comment
Mr.Loki Posted June 30, 2018 Share Posted June 30, 2018 You may need to select a target serverside then pass that target to the clients so the bot will shoot at the same target for everyone. Link to comment
SkiZo Posted June 30, 2018 Author Share Posted June 30, 2018 1 minute ago, Mr.Loki said: You may need to select a target serverside then pass that target to the clients so the bot will shoot at the same target for everyone. Let's say this is server side. function NemesisTest ( ) nemesistest = exports [ "slothBot" ]:spawnBot ( 1129, -1489, 22.8, 90, 100, 0, 0, NemesisTest, 33, "hunting", true ) baz = createObject ( 360, 0, 0, 0, 0, 0, 0 ) attachElements ( baz, nemesistest, 0.2, 0.1, 0.5, 0, 0, 90 ) setElementData(nemesistest, "nemesistest",true) exports.extra_health:setElementExtraHealth ( nemesistest, 1000) end where to add it ? i'm bad i trargetting client side etc... Link to comment
Mr.Loki Posted June 30, 2018 Share Posted June 30, 2018 Since you're using slothbot you would need to use the onBotFindEnemy event to set the target. Link to comment
SkiZo Posted June 30, 2018 Author Share Posted June 30, 2018 Still not working i mean how can i locate the target ? .. ( got nil ) 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