SC2Mapster Forums

Development > Triggers

Text tag for a 3rd Person Camera View, showing up when not supposed to

  • 8 posts
    #1 Feb 20, 2013 at 21:33 UTC - 0 likes

    I put Text Tags on all the "hero units" for a 3rd person camera view map (there is no fog of war)

    any units in front of your hero, you see the text tags just fine, but text tags of the units behind you (thus not in your camera view) show up also

    units not in your camera view should not have their text tags show up, but it does... (it did not maybe 8 months ago?)

    So how to stop the text tags for units behind the hero (not in the field of vision) from showing up?

    Last edited Feb 20, 2013 by HatsuneMikuMegurine
    #2 Feb 21, 2013 at 14:46 UTC - 0 likes

    the reason they probably show up is while they are behind your unit they are still in front of the camera. some pics of the issue would help analyze it better

    #3 Feb 21, 2013 at 17:17 UTC - 0 likes

    @willuwontu: Go

    If he's going by the hero's field of vision then it would show text tags for all units within the hero's vision radius, which is a circle around the unit and has nothing to do with the game camera.

    A simple solution would be to check if the units are within X degrees of the hero's facing direction. Only then show the tags, else hide them. I made a simple tutorial for something like this: Unit Facing Trigger

    EDIT: Link to map file: Tutorial map

    Last edited Feb 21, 2013 by BasharTeg

    My Projects:
    Malum Ruina: SC2Mapster
    Eternal Exile: SC2Mapster
    Spine Crawler Madness: SC2Mapster
    Xeno Crisis: SC2Mapster

    #4 Feb 22, 2013 at 03:48 UTC - 0 likes

    @BasharTeg: Go

    Hero's field of vision has nothing to do with it, you could make a text tag on the other side of the map with fog of war disabled for the text tag, and be able to see it if the camera was over it.

    #5 Feb 23, 2013 at 12:38 UTC - 0 likes
    Quote from willuwontu: Go

    @BasharTeg: Go

    Hero's field of vision has nothing to do with it, you could make a text tag on the other side of the map with fog of war disabled for the text tag, and be able to see it if the camera was over it.

    If I read his post correctly, it seemed as if he were showing text tags within the unit's vision radius and hiding them if they were outside said radius. The whole reason he would want to do this is because of his 3rd person camera view and disabled FoW, which would cause all distant text tags to bog down the player's screen when viewed. I apologize if this was in error.

    #6 Feb 23, 2013 at 15:38 UTC - 0 likes
    Quote from BasharTeg: Go

    @willuwontu: Go

    If he's going by the hero's field of vision then it would show text tags for all units within the hero's vision radius, which is a circle around the unit and has nothing to do with the game camera.

    I was referring to this. The game camera is the hero's field of vision and what determines which text tags are shown, if the text tag's attach point is located within in the camera. The best way to deal with this is as you put it hide the text tags from that player, so that he doesn't see them. I was just pointing this out, not commenting on your method of correcting it.

    #7 Feb 23, 2013 at 23:04 UTC - 0 likes

    @willuwontu: Go

    No no, my good sir! I was merely attempting to find and correct an error on my part.

    #8 Mar 03, 2013 at 06:15 UTC - 0 likes

    thanks for the help guys!

    I tried the tutorial map, but theres so much math its hard to understand it all hehe...

    I thought of a way to do this but more simple? (since it doesnt require math)

    Right now I just made a big circle region of like 40 diameter

    and Every 1 second, it is moved to the position of the hero unit, offset by 20 distance, and angle by the players yaw facing

    then the trigger hides all text tags everywhere, then picks and shows all text tags of units within the region

    (and this is is looped for each integer 1-12, if 12 players etc)

    Works so far...no math required either so easy for me to try lol

    Thx again for the help and ideas!

  • 8 posts

You must login to post a comment. Don't have an account? Register to get one!