Object Moves Actor - 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: Object Moves Actor (
/showthread.php?tid=636153)
Object Moves Actor -
SabaGamer - 21.06.2017
I have added some actors to my local server. When I added object(chair) near actor, it moved him away. Here's pic:
But when I move chair away a little, the actor comes down, but he is sitting on the little part of chair. Any solution to avoid actor moving away?

Here's code:
Chair
Код:
CreateDynamicObject(1810, 2232.00391, -1182.58999, 32.44000, 0.00000, 0.00000, 180.72009);
Actor
Код:
new SWATlaptop;
SWATlaptop = CreateActor(285, 2232.23755, -1182.51831, 33.54400, 0.0000);
ApplyActorAnimation(SWATlaptop, "INT_OFFICE", "OFF_Sit_Type_Loop", 4.1, 1, 0, 0, 0, 0);
Re: Object Moves Actor -
Bingo - 21.06.2017
Place your chair a little bit far from the table, And stand facing the table.
Re: Object Moves Actor -
SabaGamer - 21.06.2017
Quote:
Originally Posted by Bingo
Place your chair a little bit far from the table, And stand facing the table.
|
I have already placed it far, but actor was sitting on its edge, and I want him to sit on the whole chair surface. BTW I want to create weapon at actor's hands like he is aiming weapon, and I won't be able to do it so?
Re: Object Moves Actor -
JasonRiggs - 21.06.2017
Not much far, try to keep the space which the SWAT needs, either than or put the laptop on his lap or something.
Re: Object Moves Actor -
StR_MaRy - 21.06.2017
Check if you can sit on that chair with an ''sit'' animation then see if the chair is bugged or not