Jump to content

Problem with bots not dying.


Pedro001

Recommended Posts

  • Moderators
Posted

That's not enough information.
How do you create the bots, which resource do you using?
Peds are created on server or client side?

Posted
On 30/07/2020 at 17:34, Patrick said:

That's not enough information.
How do you create the bots, which resource do you using?
Peds are created on server or client side?

This is how they are being created.

seg1 = createPed(164, -2660.91235, 1399.24121, 906.46094, 0 )
setElementInterior(seg1,3)
setTimer(setElementHealth,1000,0,seg1,100)
setTimer(setElementFrozen,1000,1,seg1,true)
setElementData ( seg1, "ModoPassivo", true )

 

Posted
34 minutes ago, Patrick said:

@Pedro001 Because you set back ped's HP to 100 in every second.


setTimer(setElementHealth,1000,0,seg1,100)

 

Will setElementHealth(seg1, 100) work? 
or how can I put it so the ped can die? 

  • Moderators
Posted
Just now, Pedro001 said:

Will setElementHealth(seg1, 100) work? 
or how can I put it so the ped can die? 

Just remove this line, ped's HP is 100 by default.

  • Scripting Moderators
Posted (edited)

it should work,

maybe you cancelling the damage on client
or you didn't post the rest of your code

Edited by xLive

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