SA-MP Forums Archive
[HELP] Actor ped - 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: [HELP] Actor ped (/showthread.php?tid=600522)



[HELP] Actor ped - D1am0nd - 09.02.2016

Hello. So there is a command "/work", to start working as a medic and his mission is to rescue the injured ped. The injured ped has the injured loop animation. Problem is, when I arrive to the location of the ped, they are two, the one which does the animation and the second, which is just standing. So obviosly the second one is needless and I don't know, why it does appear.


Here is the code of command work:

InjuredBarber = CreateObject(156, 2073.2815, -1794.7831, 13.5572,-90.0000, 0.0000, 265.0000);
ApplyActorAnimation(InjuredBarber, "SWEET", "Sweet_injuredloop", 4.1, 1, 0, 0, 0, 0);


Re: [HELP] Actor ped - Guzuta - 09.02.2016

Problem is you are not playing animation for second actor , define new actor like InjuredBarber2 and apply animation to him


Re: [HELP] Actor ped - Vince - 09.02.2016

Shouldn't you be using CreateActor rather than CreateObject?