SA-MP Forums Archive
"Slight homing", make a missile "Slightly!" home a 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: "Slight homing", make a missile "Slightly!" home a vehicle. (/showthread.php?tid=261037)



"Slight homing", make a missile "Slightly!" home a vehicle. - Donya - 11.06.2011

alright, now i'm making something out of the ordinary, i want to make a missile "Slightly Home" (Slightly Follow) a vehicle. but if the vehicle goes out of range, it continues to go straight ahead.

now what i mean by slightly home is

[ame]http://www.youtube.com/watch?v=A_LrO-49vB4[/ame]

Look for the fire & homing missile, 0:14 for homing and 0:21 for fire

see the difference?

ok so, i already made a perfect homing missile. but now the question is? how to i make something slightly home instead of home fully


Re: "Slight homing", make a missile "Slightly!" home a vehicle. - Retardedwolf - 11.06.2011

Make a timer that runs on 1 second or so, then when a player shoots the missile, make the missile go straight to the vehicle's X, Y, Z and WAIT until the object hits the targeted X, Y, Z if the vehicle is still in the range make it move to the X, Y and Z again and repeat until the vehicle is in its explode range.


Re: "Slight homing", make a missile "Slightly!" home a vehicle. - Donya - 11.06.2011

that is homing, not slightly homing, hold up. i found a different twisted metal showing how a fire missile really works.

[ame]http://www.youtube.com/watch?v=_bRklv-c0LQ&feature=related[/ame]

1:01

see the ice cream truck guy actually shot the missile? it homed at it barely, but not fully. so the car was driving so fast, it didn't hit.


Re: "Slight homing", make a missile "Slightly!" home a vehicle. - Joe Staff - 11.06.2011

that kind of action requires more than just a get/set position script. Something like that requires one base coordinate at which point it will only change velocity at a specific speed. What I'm saying its it's slightly more complicated than regular homing


Re: "Slight homing", make a missile "Slightly!" home a vehicle. - Donya - 11.06.2011

Quote:
Originally Posted by SilentHuntR
View Post
that kind of action requires more than just a get/set position script. Something like that requires one base coordinate at which point it will only change velocity at a specific speed. What I'm saying its it's slightly more complicated than regular homing
yes, i already started on it. for now im using a complicated random script, so when a fire missile is fired, if a vehicle is streamed in and the being aimed at, it will randomly home to that vehicle, as in it homes, then continues straight. etc randomly. that will have to do for now.