20.09.2015, 09:40
Hi Crayder,
The best bet is to actually use the DestroyActor call and destroy them before respawning them. What you could do is use a timer that loops through all of your actors and uses 'GetActorHealth' and if the health returns 0.
Destroy the actor and respawn them.
Set the timer to mayeb every 5 to 10 seconds to allow you to shoot one down, and let him lie there briefly before respawning as opposed to an almost instant respawn from dying that the animation of them falling to the ground probably wouldn't even finish.
With regards to the collision of them, it's probably the way SAMP initializes them into the server. They will more than likely not have all the same attributes of a normal pedestrian which gives the 'solid effect' when driving over them after they have died.
The best bet is to actually use the DestroyActor call and destroy them before respawning them. What you could do is use a timer that loops through all of your actors and uses 'GetActorHealth' and if the health returns 0.
Destroy the actor and respawn them.
Set the timer to mayeb every 5 to 10 seconds to allow you to shoot one down, and let him lie there briefly before respawning as opposed to an almost instant respawn from dying that the animation of them falling to the ground probably wouldn't even finish.
With regards to the collision of them, it's probably the way SAMP initializes them into the server. They will more than likely not have all the same attributes of a normal pedestrian which gives the 'solid effect' when driving over them after they have died.