Jump to content

CreateProjectile


SkiZo

Recommended Posts

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 by Legend<3
Link to comment
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

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