SA-MP Forums Archive
move object help - 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: move object help (/showthread.php?tid=485018)



move object help - PawnoQ - 02.01.2014

hi,


i make an object that will move upwards so players can reach a map above.
But sometimes when object start to move some players sometimes fall through this object.
Is there a solution for this? This is getting better when i decrease the objects moving speed but i want it to move faster.

How can i fix it so now players will fall down when my objects start to move?
Is there a function? There is no function like AttachPlayerToObject or smth.?


please help, how do u move objects WITH players on it?

thanks, + rep


Re: move object help - Sawalha - 02.01.2014

try attach object to player,
pawn Код:
AttachObjectToPlayer(objectid, playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ, Float:rX, Float:rY, Float:rZ);
Just GetPlayerPos X, Y, but Z descrase it till it be under player


Re: move object help - PawnoQ - 02.01.2014

i already have all available (0-9) player attach object slots used on server so i cant make another objectl iike that.

any other ideas?