ColAndreas Destroy object on collision - 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: ColAndreas Destroy object on collision (
/showthread.php?tid=654815)
ColAndreas Destroy object on collision -
NeamPojma - 06.06.2018
I was wondering how i can destroy object on collision with something?
I know on which coordinates will collision happen (its r1,r2,r3) but im not sure how to destroy object on that coordinates?
Код:
CA_RayCastLine(p1,p2,p3,x + (dist * floatsin(-r, degrees)),y + (dist * floatcos(-r, degrees)),z,r1,r2,r3);
Re: ColAndreas Destroy object on collision -
jasperschellekens - 06.06.2018
create a timer that checks if the player is near certain coords and then delete the obj that are on that coords.
Re: ColAndreas Destroy object on collision -
NeamPojma - 06.06.2018
I mean im shooting missile from vehicle using MoveObject , and i wanted to destroy missile if it hits wall because it goes through it
Re: ColAndreas Destroy object on collision -
Pottus - 07.06.2018
If you KNOW where the collision point is then all you have to do is move the object to that position and destroy it in
https://sampwiki.blast.hk/wiki/OnObjectMoved.
Re: ColAndreas Destroy object on collision -
NeamPojma - 07.06.2018
Ah how i couldnt come up with that,thanks for poiting out and for AMAZING plugin!