SA-MP Forums Archive
Player stick to position - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Player stick to position (/showthread.php?tid=140708)



Player stick to position - jhon_connor - 10.04.2010

Hello,
I want to stick a player to a position, but he must be able to move around his own angle and shoot freely.

Is there any variable which I could use?
It's urgent and I'm working for a new GM and had this problem never before.

I hope for your response
regards,
jhon_connor


Re: Player stick to position - [HiC]TheKiller - 10.04.2010

There is no really efficient way of doing that. Try setting the players position every few milliseconds to his current position but I think that will stop the player aiming aswell.


Re: Player stick to position - KeyWay - 10.04.2010

Only possible way i could think, is to decrease players Z position a little, so the player would be half in the ground.. But it doesnt work everywhere i guess..


Re: Player stick to position - jhon_connor - 10.04.2010

First thnaks for your ideas
so could i stick the player half into a car an he would be able to aim?