Attaching blood splash to player - 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: Attaching blood splash to player (
/showthread.php?tid=624553)
Attaching blood splash to player -
FFAKO - 18.12.2016
how can i make blood splash appear on shotted players injure? (for example somebody shoot me from my leg and on my chraracter theres a blood splash attached on my leg and its gets bigger until injure get regenerated) is it possible to make?
Re: Attaching blood splash to player -
Amads - 18.12.2016
My take is that it is possible, but the splash will just be a flat texture, and it won't look good.
Here's the blood splash object, you can try to attach it using some editor filterscript and see for yourself:
http://dev.prineside.com/en/gtasa_sa...36-BloodPool1/
Re: Attaching blood splash to player -
FFAKO - 19.12.2016
it doesnt needs to be look like real blood its ok but theres a way to make it stick to the body automatically where the bullet or knife penetrate and make its smaller? thank you
Re: Attaching blood splash to player -
Dignity - 19.12.2016
Get the body part using OnPlayerTakeDamage to know where to put the object. Then use the object Amads linked and use SetPlayerAttachedObject to attach it to the correct area.
Re: Attaching blood splash to player -
FFAKO - 19.12.2016
thanks but im new to scripting can you give a example and is it possible to set attached until injury is revived and then its removed and if theres a bullet in body set to max health to the 80?
Re: Attaching blood splash to player -
FFAKO - 21.12.2016
bump