SA-MP Forums Archive
If object collision with world or vehicle - 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: If object collision with world or vehicle (/showthread.php?tid=392740)



If object collision with world or vehicle - gamelaster - 15.11.2012

Hi, i have question... How check collide vehicle/world with object But i creating missle and i dont know how this create.... Thanx for helping...


Re: If object collision with world or vehicle - B-Matt - 15.11.2012

https://sampwiki.blast.hk/wiki/Function:GetVehiclePos - for vehicle position
https://sampwiki.blast.hk/wiki/GetObjectPos - for missle object
https://sampwiki.blast.hk/wiki/CreateExplosion

if missle object pos = vehicle pos then create explosion?


Re: If object collision with world or vehicle - gamelaster - 15.11.2012

its function for full model or only center of vehicle?


Re: If object collision with world or vehicle - B-Matt - 15.11.2012

Quote:
Originally Posted by gamelaster
Посмотреть сообщение
its function for full model or only center of vehicle?
I think center.. But that can be useful is you have idea.


Re: If object collision with world or vehicle - gamelaster - 15.11.2012

Quote:
Originally Posted by B-Matt
Посмотреть сообщение
I think center.. But that can be useful is you have idea.
for this i recommanding mta, but mta is not played ... But, i test use the area