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.
[02:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[02:47 am]
Symmetry -- I'll check it out this weekend!
[02:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[02:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[01:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[01:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[01:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
[01:31 am]
Ultraviolet -- Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Is it forbidden to have a large avatar?
actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
[12:20 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: https://staredit.net/profile/133367/ dude's avatar is massive
Is it forbidden to have a large avatar?
[12:04 am]
Ultraviolet -- https://staredit.net/profile/133367/ dude's avatar is massive
Please log in to shout.


Members Online: UndeadStar, Ultraviolet