Creating visible range of tower help please

MissKerrigan

Active Member
Reaction score
23
Hey,

My scv can build several towers
Can somebody tell me how I see their range when placing them + when selecting them?

I prefer to see the same range indicator just like the pylon has (lightblue field)

Any help would be nice

MissKerrigan
 

Dave312

Censored for your safe viewing
Reaction score
269
Do you want to show the sight range or the weapon range? Since it is a tower I assume it will be weapon range.

Go to the Actors data type and create a new actor of the type Range and based on Range Weapon (Change this to Range Sight if you want it based on sight range). Now set the weapon token to the weapon of your tower on the actor you just created (if you want the sight range, set the sight token to your tower unit).

Now find the Placement Model actor and edit the Event: Events + property. You need to create and new which which will create your range actor when your tower is being placed. Create a new event (Right-Click > Add Event) and set the Msg Type to Actor Creation. Now add a new Term (Right-Click on your event > Add Term) and set the Term Type to Model Name and Model to the placement model for your tower. Now select the action and change the Msg Type to Create[/i]. Select the parameter Name and change the Type (down the bottom) to Actor and select your range actor you just created. If done correctly, it should look something like this:
Code:
ActorCreation
   ModelName <Your_Placement_Model>
   Create <Your_Range_Actor>
 

MissKerrigan

Active Member
Reaction score
23
The only thing I want is when select SCV and click a at a tower, that you see the range of it before planting the tower!

Hmm how I explain this...


It's the same thing like you see in league games if you build a spine crawler, you can see the range of it where it would reach when planting the spine crawler
I only want to see the range when have selected the tower, not all time, because it will be a mess when have more towers later in game :)

MissKerrigan
 

Dave312

Censored for your safe viewing
Reaction score
269
It is the weapon range that is shown for the spine crawler unit (as with all the other defensive structures). My instructions in the my previous post will give you the result that you are after.
 

MissKerrigan

Active Member
Reaction score
23
Alright, I'll have a closed look then at your instruction

1. 'Now set the weapon token to the weapon of your tower on the actor you just created'
What did you mean by this sentence? (sorry my english is not fully)


2. Do I have to make the acter-event in the actor I just created (range) or in the actor of the tower?

MissKerrigan
 

Dave312

Censored for your safe viewing
Reaction score
269
1. 'Now set the weapon token to the weapon of your tower on the actor you just created'
What did you mean by this sentence? (sorry my english is not fully)
Some actors have a Token property which is a little different than a normal property. On the actor you just created, there should be a token property called weapon. You need to change the value to the weapon of your tower. See image below.
Token.png
2. Do I have to make the acter-event in the actor I just created (range) or in the actor of the tower?
No. You need to find the actor called Placement Model and add the event here.
 

MissKerrigan

Active Member
Reaction score
23
Yes I found it!! I know now I have to put the 'actor-events' in the placement model actor, yes I now see the placement range of tower!

I also wanted know how you can see the range of the tower when you select them so I went to the siege tank range actor (because I know the siege tank shows a range when selecting it)
I copied + pasted this events and created them also for my towers but here went wrong something!

When I create the 'selected range' actors, the placement actors are not working!
When I remove the 'selected range' actors the placement actors works fine
And even when I remove the 'placement actors' the 'selecting actors' now do work! weird stuff

So for now I just created the placement range actors so you at least can see where you build a tower
 

Dave312

Censored for your safe viewing
Reaction score
269
You can use the same range actor that you used for the placement. Go to the range actor you created previously and add the following events:

Code:
SelectionLocalUpdate.<Your_Tower_Unit>.Start
   Create

SelectionLocalUpdate.<Your_Tower_Unit>.Stop
   Destroy
 

MissKerrigan

Active Member
Reaction score
23
Thx Dave I finally got it but you forgot 1thing:

Because you can't select a value in the actor-event, you have to save the map like a 'script file' which you can open in the notebook.
In notebook you can change the name 'siegetankrange' to whatever I called my tower-actor
I watched this at a 'you tube tutorial.

Everything works fine now:

1. Placement range for towers when building tower
2. LocalUpdateSelection when selecting tower

But 1 last problem I got now is when playing the map with multiple players, I see all range actors of all towers the other players have selected
This is not that big deal, I can live with it and just ignore it

MissKerrigan
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
I think this might be out of your league (and mine, I just skimmed through it and I don't really want to get more into it if I don't have to) but you can show different actors for different players with a method called "phasing". Here's a tutorial on it.

On the other hand, the pylon shows the power grid actor only for the selected player. That might be worth looking into.
 

MissKerrigan

Active Member
Reaction score
23
Thx Siretu! I will try this tutorial (ofcourse! the pylon range also is visible only for the selected player)
 

Dave312

Censored for your safe viewing
Reaction score
269
Thx Dave I finally got it but you forgot 1thing:

Because you can't select a value in the actor-event, you have to save the map like a 'script file' which you can open in the notebook.
In notebook you can change the name 'siegetankrange' to whatever I called my tower-actor
I watched this at a 'you tube tutorial.
Huh? I have been able to do this without having to resort to editing the script file in a text editor.

But 1 last problem I got now is when playing the map with multiple players, I see all range actors of all towers the other players have selected
This is not that big deal, I can live with it and just ignore it

Does this happen for computer controlled players as well? Do they have to be allied to you? I would like to debug this but need some more information so I can replicate the issue.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/
  • The Helper The Helper:
    Here is another comfort food favorite - Million Dollar Casserole - https://www.thehelper.net/threads/recipe-million-dollar-casserole.193614/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top