SA-MP Forums Archive
PoolBall bounce - 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: PoolBall bounce (/showthread.php?tid=223742)



PoolBall bounce - WebScript.Biz - 10.02.2011

Hi!
I am trying to create a Pool game (Biliard game) to SA:MP , and I have one question. How can I bounce ball when it hit the wall of the billiard table? (The ball always go through the table and donґt bounce or stop) How can I do that? If you help me, Iґll release this PoolGame if you want it.
Thank you for help


Re: PoolBall bounce - WebScript.Biz - 12.02.2011

Nobody knows? Please help


Re: PoolBall bounce - Ash. - 12.02.2011

Erm, i have no idea but in my opinion you'd need the offset and size of the pool table, probably just guess work to be honest.


Re: PoolBall bounce - Berky - 15.03.2011

Create a timer which checks the location of the Pool ball using GetObjectPos and make it bounce after when it hits the area where the Pool table stops. Hope it helps.