I want to give a unit detection ability, so that as it pans an area, the detection area pans with it.
Specifically, I want to do this to a Castanar Camera.
I've created a unit of it, and as the camera pans left and right, I want it so that its detection ability pans left and right with it.
Is there an easy way to do this? Or, even a hard way? lol
cool, how would one go about changing the white detection markers to correspond with the detection arc?
In other words, my camera is detecting everything in front of it in a 45 degree cone. I want the white markers that are normally displayed in a circular radius around a detector when a cloaked unit gets near it to also be in the shape of that same 45 degree cone.
Range actors most likely can't do that unless they're hardcoded to automatically display the arc.
I suggest you look for the cone-shaped indicators from the HotS campaign, I know Zurvan has a 45-90° one for his "lightning breath" attack. Since they're probably 2D Splat type objects you should be able to clip them to the right angle in an image editing program, but I haven't looked into it myself.
You will have to use a hidden, invulnerable unit with a Detector behavior that uses an arc, then use trial&error to make your hidden unit change its facing in roughly the same way as the camera moves.
There's an exception if the camera has an attachment point on its tip, that is properly moved around by the animation, in that case you might be able to attach the hidden unit to that point and not have to change its facing yourself, but that is unlikely.
Edit: oh and Range actors do display arcs, they just look a little bit awkward because the edges are not drawn
Hello,
I want to give a unit detection ability, so that as it pans an area, the detection area pans with it.
Specifically, I want to do this to a Castanar Camera. I've created a unit of it, and as the camera pans left and right, I want it so that its detection ability pans left and right with it.
Is there an easy way to do this? Or, even a hard way? lol
There's the Detection Arc field on Buffs. If you can make the unit turn (using Issue Order effects probably) the detection arc should turn with it.
@Photoloss: Go
cool, how would one go about changing the white detection markers to correspond with the detection arc?
In other words, my camera is detecting everything in front of it in a 45 degree cone. I want the white markers that are normally displayed in a circular radius around a detector when a cloaked unit gets near it to also be in the shape of that same 45 degree cone.
Range actors most likely can't do that unless they're hardcoded to automatically display the arc.
I suggest you look for the cone-shaped indicators from the HotS campaign, I know Zurvan has a 45-90° one for his "lightning breath" attack. Since they're probably 2D Splat type objects you should be able to clip them to the right angle in an image editing program, but I haven't looked into it myself.
You will have to use a hidden, invulnerable unit with a Detector behavior that uses an arc, then use trial&error to make your hidden unit change its facing in roughly the same way as the camera moves.
There's an exception if the camera has an attachment point on its tip, that is properly moved around by the animation, in that case you might be able to attach the hidden unit to that point and not have to change its facing yourself, but that is unlikely.
Edit: oh and Range actors do display arcs, they just look a little bit awkward because the edges are not drawn
@Photoloss: Go
Yeah that probably has a lot to reveal for map makers. Been meaning to study it.
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