SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 31/07/2012, 12:52 AM   #1
gnoomen2
Big Clucker
 
Join Date: Feb 2011
Posts: 195
Reputation: 6
Default How to make a moving object get destroyed at a players position?

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.
gnoomen2 is offline   Reply With Quote
Old 31/07/2012, 01:07 AM   #2
HDFord
Big Clucker
 
HDFord's Avatar
 
Join Date: Aug 2011
Location: Grønvollfoss in Norway with a shotgun
Posts: 166
Reputation: 19
Default Re: How to make a moving object get destroyed at a players position?

Try to set a timer that gets the players position and destroys the object when the GetObjectPos = GetPlayerPos.
__________________
If you cannot script it yourself learn it or leave it!!!
Want me to make a tut? Feel free to ask


Code:
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
HDFord is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] [TuT]How TO MAke Moving Object Aleluja Tutorials 52 26/05/2015 01:47 PM
Detecting when an object gets destroyed Tee Scripting Help 5 25/07/2012 07:08 PM
how to detect specified object is destroyed akhilarora123 Scripting Help 0 03/06/2012 03:02 PM
how can I when a object is destroyed move to another ??? RobShakur Help Archive 2 09/02/2010 03:48 PM


All times are GMT. The time now is 08:37 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.