ColAndreas Destroy object on collision
#1

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);
Reply
#2

create a timer that checks if the player is near certain coords and then delete the obj that are on that coords.
Reply
#3

I mean im shooting missile from vehicle using MoveObject , and i wanted to destroy missile if it hits wall because it goes through it
Reply
#4

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.
Reply
#5

Ah how i couldnt come up with that,thanks for poiting out and for AMAZING plugin!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)