Done a lot of searching but either too new to make sense of it, or topic is beam targeting a unit, not a point.
Right now I have an ability very similar to Psi Storm... for all practical purposes it is the same thing except I need a beam to go from the unit to the targeted point on the ground, and it needs to work even if there are no units in the search area AOE. The ability is also channeled, but not sure if that is relevant. I've gotten to work when there is a unit there, but it won't work when there is no unit in the area.
I've looked at Colossus weapons and it just seems way too in depth because the lasers move, I feel like I'm sifting through a lot of unnecessary data and not sure what is relevant or not. Also, not sure how weapons operate compared to abilities in this instance. Site actors and hosting are still very alien to me right now.
Make sure your ability is an Effect - Target type of ability, create an effect for the ability of type 'create persistent' and if your'e in table view go to Target: Location + field and change the field to Target Unit/Point, if you're in detail view go to target tab and under location value change to Target Unit/Point. This allows you to target a unit or a point, depending on what you selected.
With beams you need to create a Site type actor at the point (colossus uses a Site (Mover) so it can move following the persistent) and then force your beam actor to use this site as the impact site.
Yeah I got it to work after watching OneTwoSC's shotgun weapon tutorial. Created a Site actor with an event to create on spell effect persistent (At Target, or At Effect - I think both worked) and SOpAttachCenter. The beam actor creates on the search effect, and references the site actor for it's impact site. For the launch site I used an "Creation" type (on the beam actor) and that referenced a SiteUNIT actor that had no events. So I assume the "Creation" time creates the site itself, because the site IS itself (the unit).
If you just want the beam to target the point, you don't necessarily need a site actor. You can try to use the point site operations instead, for example SOpTargetPoint
If it needs to move however, you will need the site.
Done a lot of searching but either too new to make sense of it, or topic is beam targeting a unit, not a point.
Right now I have an ability very similar to Psi Storm... for all practical purposes it is the same thing except I need a beam to go from the unit to the targeted point on the ground, and it needs to work even if there are no units in the search area AOE. The ability is also channeled, but not sure if that is relevant. I've gotten to work when there is a unit there, but it won't work when there is no unit in the area.
I've looked at Colossus weapons and it just seems way too in depth because the lasers move, I feel like I'm sifting through a lot of unnecessary data and not sure what is relevant or not. Also, not sure how weapons operate compared to abilities in this instance. Site actors and hosting are still very alien to me right now.
Any help would be greatly appreciated!
Thanks
Make sure your ability is an Effect - Target type of ability, create an effect for the ability of type 'create persistent' and if your'e in table view go to Target: Location + field and change the field to Target Unit/Point, if you're in detail view go to target tab and under location value change to Target Unit/Point. This allows you to target a unit or a point, depending on what you selected.
With beams you need to create a Site type actor at the point (colossus uses a Site (Mover) so it can move following the persistent) and then force your beam actor to use this site as the impact site.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Yeah I got it to work after watching OneTwoSC's shotgun weapon tutorial. Created a Site actor with an event to create on spell effect persistent (At Target, or At Effect - I think both worked) and SOpAttachCenter. The beam actor creates on the search effect, and references the site actor for it's impact site. For the launch site I used an "Creation" type (on the beam actor) and that referenced a SiteUNIT actor that had no events. So I assume the "Creation" time creates the site itself, because the site IS itself (the unit).
Thanks for the help guys.
If you just want the beam to target the point, you don't necessarily need a site actor. You can try to use the point site operations instead, for example SOpTargetPoint
If it needs to move however, you will need the site.