SA-MP Forums Archive
Create actor sitting in chair - 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: Create actor sitting in chair (/showthread.php?tid=610699)



Create actor sitting in chair - ScIrUsna - 27.06.2016

Hi,

I create chair object and actor apply sitting animation, but he is always is higher than chair he look like flying if i create actor with less z, he start to fall from interior...


Re: Create actor sitting in chair - Matz - 27.06.2016

Find a chair that fits animation : P


Re: Create actor sitting in chair - ScIrUsna - 27.06.2016

But i want to use exactly that chair id object..


Re: Create actor sitting in chair - DTV - 27.06.2016

Increase the height of the chair until it fits the animation then.


Re: Create actor sitting in chair - ScIrUsna - 13.07.2016

But chair is have to by in same height because it's place on ground i can't higher or lower put it..


Re: Create actor sitting in chair - Threshold - 13.07.2016

You need to make the distance between the actor and the chair further then.


Re: Create actor sitting in chair - NaS - 13.07.2016

First off, actors (and all other ped-like entities) don't change their collision model when performing an animation.
That means that the actor basically still stands (collision-wise).

Second, the chair might have an imperfect collision model, if it's not detailed enough there is no chance to place an actor on it. Well, it's maybe possible in some cases but it might look different for every player.

Find a chair without collision, that will work. If it looks ugly, you can retexture it.


Re: Create actor sitting in chair - ScIrUsna - 27.07.2016

Retexture what it can change?


Re: Create actor sitting in chair - NaS - 27.07.2016

Quote:
Originally Posted by ScIrUsna
Посмотреть сообщение
Retexture what it can change?
A retexture can change the texture (duh).
If you find a chair that works for what you planned but it doesn't look good, you can change its texture to some better looking wood texture using SetObectMaterial.