Howdy guys, I've got a trigger I'm trying to make and although I have something that looks good to my mind, I really have abosultly no clue what I'm doing.
This trigger is for an 1P shooter, AoS Style game with several other elements as well.
We've already got a movement system in 1P (also made 3P but we are not gonna use it) as well as some basic spawns and hero selection system (need to make the heros still).
Anyways, right now I've got the following trigger I need help with:
Basically what I'm trying to do is have it select what ever hero (friend and enemy) is closest to the center of the casting player's yaw and pitch (mostly just yaw). So when a hotkey (and only a hotkey since the mouse controls the camera in 1P mode) is pressed it will select the target that the player's camera is looking at and cast the spell (ability?).
As I said before, I have no clue what I'm doing, and I need this made asap although I have no real ability to test it atm. I can either make the abilities and have a trigger try to fit them and make a trigger that will fit what I can use for abilities.
Later on (maybe soon after this) I will need to add a custom projectile system as well, although thanks to a couple of contributers of sc2mapster (thank you!) I have something to base this map's system off.
I have NO idea what your example is trying to accomplish...
What I'd recomend, if you want to make a function like you are, is create a region in front of the player, select all objects in that region, calculate the angle to those objects from the center point of the region, and pick the lowest angle.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Howdy guys, I've got a trigger I'm trying to make and although I have something that looks good to my mind, I really have abosultly no clue what I'm doing.
This trigger is for an 1P shooter, AoS Style game with several other elements as well.
We've already got a movement system in 1P (also made 3P but we are not gonna use it) as well as some basic spawns and hero selection system (need to make the heros still).
Anyways, right now I've got the following trigger I need help with:
http://i38.tinypic.com/2mgqnwn.jpg
Basically what I'm trying to do is have it select what ever hero (friend and enemy) is closest to the center of the casting player's yaw and pitch (mostly just yaw). So when a hotkey (and only a hotkey since the mouse controls the camera in 1P mode) is pressed it will select the target that the player's camera is looking at and cast the spell (ability?).
As I said before, I have no clue what I'm doing, and I need this made asap although I have no real ability to test it atm. I can either make the abilities and have a trigger try to fit them and make a trigger that will fit what I can use for abilities.
Later on (maybe soon after this) I will need to add a custom projectile system as well, although thanks to a couple of contributers of sc2mapster (thank you!) I have something to base this map's system off.
Anyways enough back the background,
Can anyone help me here?
Thanks!
I have NO idea what your example is trying to accomplish...
What I'd recomend, if you want to make a function like you are, is create a region in front of the player, select all objects in that region, calculate the angle to those objects from the center point of the region, and pick the lowest angle.