Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Traceline Targeting not hitting players
[Solved] Traceline Targeting not hitting players
This topic is locked. You can no longer write replies here.
Oct 9 2010, 4:18 pm
By: mudtalo  

Oct 9 2010, 4:18 pm mudtalo Post #1



I'm using the traceline targeting code, and I'm trying to make it so that you can shoot people not on your team. I thought it was an issue with my shoot command, but I don't see anything else that I haven't checked yet. See if you can spot what i'm doing wrong or know a way to fix this. Thank you.

http://vgshorts.com/BBCode/BBCode3.php?ID=162

Post has been edited 1 time(s), last time on Oct 10 2010, 4:55 pm by mudtalo.



None.

Oct 9 2010, 9:43 pm payne Post #2

:payne:

Try to use this website to copy-paste your trigger: http://vgshorts.com/BBCode/BBCode3.php
It'll help us have a better visual of it in order to help you.



None.

Oct 10 2010, 4:56 pm mudtalo Post #3



bumb



None.

Oct 10 2010, 8:10 pm Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

1. your reload won't work because after the reload check the rest will be executed. So you reload & shot without ammo in your code.

2. I don't know the "traceline targetting code". So you could have shown us the library.

3. The mistake may be inside the code for TargetUnit(TriggeringPlayer()), but I don't know anything about that function except what it may do.
I can only blindly guess that you have to change the code in there to return allied units, too.

4. Please make some more details what doesn't work. What is happening, what did you expect to happen?
Your posts looks like "Does not work. Dunno what's wrong, please look.".

If something doesn't work add some output (text message) to get some data during testing...




Oct 12 2010, 2:27 pm payne Post #5

:payne:

Just want to make sure: you do know the trigger will be executed only if all the 8 specified players press the left-click mouse button at the same time?



None.

Oct 12 2010, 6:09 pm mudtalo Post #6



I have tested it with 2 players, they can shoot AI, aka player 15, but not eachother.

I have uploaded the entire map for download. I keep coming back to this problem with no luck. I feel like i'm not understanding something, as this is my first map. Once again, thank you for your time and help.

http://www.mediafire.com/?6vhjlpk1lsw11i3



None.

Oct 12 2010, 9:50 pm Ahli Post #7

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

The "mistake" is inside traceline().
There is: Target closest unit = ... with player 15. there has to be any player or sth..




Oct 13 2010, 3:38 am mudtalo Post #8



Ah man your right thanks, compleatly overlooked that. Works now, ty



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:58 pm]
lil-Inferno -- ya
[2026-4-25. : 11:50 pm]
JamaL -- Glad to see SEN will never die. Kudos to whoever is paying the hosting fees these days!
[2026-4-25. : 3:37 pm]
NudeRaider -- (-.-,)
[2026-4-25. : 3:35 pm]
Zoan -- ;o I thought that was a monkey emote
[2026-4-25. : 3:34 pm]
Zoan -- :mods:
[2026-4-25. : 3:34 pm]
Zoan -- :mods"
[2026-4-25. : 3:20 pm]
NudeRaider -- Vrael
Vrael shouted: moderation? on SEN? in 2026? completely localized in anoeth47's topic? at this time of year?
boy, if you're not careful I'll moderate your sorry ass too!
[2026-4-25. : 3:06 pm]
RIVE -- Yyyes. Don't you see it?
[2026-4-25. : 2:11 pm]
Vrael -- moderation? on SEN? in 2026? completely localized in anoeth47's topic? at this time of year?
[2026-4-25. : 1:39 pm]
NudeRaider -- anoeth47
anoeth47 shouted: Can I get a moderator/lord of the forum to clean up my topics - delete posts not really part of the topic.
send me the links of the posts you want deleted via pm
Please log in to shout.


Members Online: anoeth47