Author Topic: Proximity Detection Code  (Read 761 times)

A friend and I are working on a new weapon and were wondering what code would make it so that when the projectile nears a player/bot/possibly vehicles, it explodes. Could someone help us with this? We tried using some code from the Homing Vector, but it doesn't exist on RTB anymore since it was uploaded to RTB2 and hasn't been re-uploaded. Even re-uploading it would help greatly. Thanks.

I belive i still have the homing vector if so I will pm a link to it to you.


Ya I still have it, the homing vector was in a very old file of mine, I never delete old files.
« Last Edit: November 11, 2009, 03:39:10 PM by Human Reaper »

This lets you detect team enemies in mods like Team Deathmatch and the two Zombies ones.

This lets you detect team enemies in mods like Team Deathmatch and the two Zombies ones.

Yeah, we pulled that from the Homing Rocket Launcher's script, and stuff, now that I realize that, I probably should've asked you if that was okay...

Yeah, we pulled that from the Homing Rocket Launcher's script, and stuff, now that I realize that, I probably should've asked you if that was okay...

You dont really have to ask as long as you dont release it without giving credit.

Oh okay, yeah I was definitely planning on giving plenty of credit. But my original question still stands... How would I go about doing that?