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:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[2026-4-17. : 4:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
[2026-4-17. : 11:30 am]
NudeRaider -- I would like 3000 minerals, please
[2026-4-16. : 7:32 pm]
Zoan -- I got $2000 bonus. I would like 2000 minerals, please
[2026-4-16. : 4:15 am]
DarkenedFantasies -- you eat lots of beans
[2026-4-16. : 3:46 am]
IskatuMesk -- how do i get gas
[2026-4-15. : 11:43 pm]
Moose -- you don't
[2026-4-15. : 10:06 pm]
Zoan -- how do i get minerals
[2026-4-14. : 11:45 pm]
ClansAreForGays -- Anyone wanna played Skewed StarCraft?
[2026-4-14. : 12:07 am]
Vrael -- NudeRaider
NudeRaider shouted: Vrael ranting still is though
you're a gentleman and a scholar, thank you
Please log in to shout.


Members Online: JohnnyTheWolf, Sixen, O)FaRTy1billion[MM]