How to make a moving object get destroyed at a players 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)
+--- Thread: How to make a moving object get destroyed at a players position? (
/showthread.php?tid=364541)
How to make a moving object get destroyed at a players position? -
gnoomen2 - 31.07.2012
I got everything working, the missile follows the target, but when it comes to the player, it waits untill the timer is out before it gets destroyed, and i want it to explode when it comes to the player.
Say if you need the code.
Please help, thanks.
Re: How to make a moving object get destroyed at a players position? -
HDFord - 31.07.2012
Try to set a timer that gets the players position and destroys the object when the GetObjectPos = GetPlayerPos.