Proximity detection for weapon projectile
Is there possible to get same kind proximity detection to weapon projectile (like Disk) what works like Mine? I can find the "proximity = x.x;" setting but it does not work as I tought. Something is missing. Idea is to build up a flak turret where the projectile needs to explode on X radius of the target (enemy or friend).
Comments
What is the "schedule (100, 0,..." part? Does it tell the range or timing of explode when comes to proximity?
Need to check out that do I get that code work...
Implementation to determine if a player/client is within range, and explode the projectile is left to you.
I'd suggest looping through the client-group and using the client.player variable to check distance of players from the projectile with vectorDist()
What you mean by that?
I believe I have not understood the #step 7 part on the tutorial. Specially the "should become:" part. Should I replace the top with the bottom version or what.
Or it might that latest patch has made that function non-working state. Intreasting idea at least.
Simply this:
that's a container radius search, %pos being the current position of the projectile, %rad being the radius to search, and %TargetSearchMask being the type mask to check. you could add additional checks to see if the target is alive or not, what team they are on, and all, but that's just a basic search.
Yes, replace the top with the bottom part