Jump to content

Problem with bots not dying.


Pedro001

Recommended Posts

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 )

 

Link to comment
  • Scripting Moderators

it should work,

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

Edited by xLive
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...