SA-MP Forums Archive
missing death animation - 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: missing death animation (/showthread.php?tid=638518)



missing death animation - atzeex - 02.08.2017

Hello,

my problem is when i die like fall damage or get shoot in fight etc, i directly spawn on the hospital. I want first get death animation (when camera goes up in the sky (2D view) and then the spawn on the hospital

What did i wrong or did i forget something with OnPlayerDeath or SetPlayerSpawn??

greetz


Re: missing death animation - LazzyBoy - 02.08.2017

First make an variable when player is about to die and u can set his health to 1 or smth so he wont directly respawn , once you do that play the animation of death whatever it is and set your camera pos at location you want , then execute a timer for X minutes for player to spawn at hospital or smth.


Re: missing death animation - atzeex - 02.08.2017

Thats the way to create a own animation but samp has already a standard death animation like singleplayer.

Here is a video example what i mean

https://www.youtube.com/watch?v=c0L0EZVelc0

greetz