Staredit Network > Forums > SC2 Assistance > Topic: Unit enters range of Unit
Unit enters range of Unit
Jun 10 2010, 1:27 pm
By: Devourer  

Jun 10 2010, 1:27 pm Devourer Post #1

Hello

So, there is an event called
"Unit enters range of unit" and the triggering unit is referred to the first unit parameter.
In a shoter game, I added all bullets in a unit group and tried to do something like
"Any unit enters range of any unit in unit group" but apparently, something like this does not exist, does it?
Please post a solution, no clues or hits. I want a tested solution.

Info:
Every bullet is owned by the same player and is the same unit type.



Please report errors in the Staredit.Network forum.

Jun 10 2010, 5:26 pm Ashamed Post #2

Hear me Raor!!

All I have been able to come up with is a system that will work in a region, and hit the closest unit to the trigger unit.
... I am trying to get it just so you can click and it will just shoot and hurt what ever it hits, but that is a bit hard lol.

Do you want my trigger for the hit closet unit?

( and why are you putting the bullets in a group.. is there a reason for that, or are you just trying to figure out how to get them shooting? )



None.

Jun 10 2010, 6:37 pm Devourer Post #3

Hello

Actually the group doesn't matter and was created for a test before.



Please report errors in the Staredit.Network forum.

Jun 10 2010, 6:39 pm Ashamed Post #4

Hear me Raor!!

That is what I figured!
If you download my rpg wasd system on the map productions. It has my system its not exactly what you want but you should still look at it and get some ideas.
Currently I am working on a system with a Depot / and I just want it to shoot photon cannon missiles at where the mouse is and hurt the unit near it. So I will also share what I find with you because I think We both are trying to make similar systems.



None.

Jun 11 2010, 4:18 am FatalException Post #5



If you're trying to make a shooting system, you really need to get into ray tracing. Move a point a set distance each loop of your shooting trigger with polar offset of the yaw of the player's camera, alter the height of the point each loop relative to the horizontal distance traveled, pitch of the camera, and ground height, and check if the bullet hits stuff by seeing if it's below ground level or if there's a unit close to it. I have semi-working bullets and launched grenades (I say semi-working because for some reason, they change height when the ground does), if you'd like to look at my code.



None.

Jun 11 2010, 12:22 pm Devourer Post #6

Hello

Err, that's what I done. Camera aiming like in counter strike.
However, how did you manage the y-axis? how to order a unit to a height point?



Please report errors in the Staredit.Network forum.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:35 pm]
Symmetry -- though mine's probably worse
[03:35 pm]
Symmetry -- That certainly sounds similar to what I've made
[06:28 am]
Ultraviolet -- sounds like Bound & Defend
[07:43 pm]
Symmetry -- If you take the reins you damn well be ready to ride
[2026-5-23. : 2:46 pm]
NudeRaider -- you wish
[2026-5-23. : 12:43 am]
IskatuMesk -- Ah, so Reindeer Breeding 3: BDSM edition.
[2026-5-22. : 12:45 am]
Moose -- tbh
[2026-5-20. : 8:27 pm]
Symmetry -- It's a bound map where you cross obstacles to earn units to defend your base
[2026-5-20. : 8:16 pm]
Symmetry -- No, the world isn't ready for that
[2026-5-20. : 5:11 pm]
Zoan -- Reindeer Breeding 3?
Please log in to shout.


Members Online: Symmetry, Moose