Small dead body problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Small dead body problem (
/showthread.php?tid=583348)
Small dead body problem -
Dizzle - 27.07.2015
Hello everyone, Im using a piece of code that creates a dead body at the place you've died.
Everything is cool when I run it on my home host - the body lays down dead, but when I upload it on the host Im using, the body is standing still, not laying down like dead. Any solution ?
NOTE: My home host is on Windows, the other host Im using is on Linux.
EDIT: Noticed on my home host, that when I updated it from 0.3.7 to 0.3.7 R2-1, it got bugged there too, why's that ?
Home host 0.3.7 :
Other host 0.3.7 R2-1 :
AW: Small dead body problem -
Mencent - 27.07.2015
Hello!
Can you send us the code of this "system"?
Re: Small dead body problem -
Dizzle - 27.07.2015
Using this one:
https://sampforum.blast.hk/showthread.php?tid=573210
AW: Small dead body problem -
Mencent - 27.07.2015
I think this is a mistake between the position after the death. Maybe it is a mistake to get the right position.
Give this actor an animation, and then it should work.
https://sampwiki.blast.hk/wiki/ApplyActorAnimation
Re: Small dead body problem -
Dizzle - 28.07.2015
Well it was working fine on the 0.3.7 version of samp, but on the 0.3.7 R2-1 it doesnt, already tried to apply animation to the actor, but its still standing like a statue?!
Re: Small dead body problem -
DarkLored - 28.07.2015
Make sure that you first set the position of the actor then apply the animation, because if you first apply the animation and then set the position it can be viewed differently in the other players screens.
Re: Small dead body problem -
Dizzle - 28.07.2015
First Im setting the position, then Im applying the animation, and thats not the problem because it's setting the actor's health to 0 and it should be laying down like dead, and it was working perfectly on 0.3.7, now its not on 0.3.7 R2-1 ?
PHP код:
SetActorVirtualWorld(RemainsData[r_id][Model], world);
SetActorHealth(RemainsData[r_id][Model], 0.0);