I have successfully altered a Missile Turret to attack only at a 90 degree angle. In the process of trying to replicate this unit, I found too many issues, so I created a unit (a tower with a working attack) from scratch that is 100% functional.
My issue is, when I tried to create a turret for said unit, I could not get the unit to function properly. For example, when I added the created turret to the base unit's "turret", and made the angle adjustments, the tower would attack, but not yield any effects or damage. After reverting the towers turret to it's regular state, the tower continued to act normally.
I created an actor for the towers turret (copied from the missile turrets actor), and I think I linked it properly.
Is there something I am missing in this turret creating process? I looked at the tutorial on these forums, but it wasn't too helpful considering the lack of detail and general goal to do something different.
If any additional information is needed please let me know.
The turret actor was set to create on Turret Enable, which I believe was from the missile turret. Should this be changed to create on unit birth, where the unit is the tower?
The turret actor 'Attachment - Yaw Query - Methods' - was set to "TurretZ".
The turret 'Yew Arc' was set to 0, so yes.
The unit 'Combat - Weapons - Turret' field did have my turret in place.
Also, as I know one has to change a weapon so the damage is done by the weapon projectile which I did, is the same true for a turret? Does one have to link it to the weapon to some degree?
Edit: I attempted to change the turret actor to create on unit birth, yielding the same results. Just to verify, we are talking about changing the actors 'events' to:
"Msg Type: Unit Birth", "Source Name: <unit name>", and then the action "Msg Type" to create?
The Yaw Arc is how many degrees left and right of pointing straight the turret can turn to use its effects/damage. If this value is set to 0 it can only attack stuff dead straight infront of the unit. Set this to 45 for a 90 degree field of attack.
The turret purely enables the weapon to turn to face the target which is only a problem for stationary units like buildings. Some weapons like the marine gauss rifle are weapon effect>damage only without any projectile.
The upper part can be enable turret/actor creation/unit birth.name of unit.any
Also is it deffinitely just the turret and not the weapon that is the cause?
The Yaw Arc is how many degrees left and right of pointing straight the turret can turn to use its effects/damage. If this value is set to 0 it can only attack stuff straight infront of the unit.
Right, I understand this, and this is my goal. I have the turret's Yaw starting at 90 degrees. I want the tower to shoot only in a strait line. But like I said, the issue I am having seems to be linking the turret correctly. I have already altered a missile turret to do what I want. In fact, i'll attach the test map to give you an example of what I am trying to do. Although that probably won't help much with my current issue.
Edit: I'm pretty sure it's the turret, because when I alter any turret yew setting it breaks the tower.
I want the tower to attack at a specific angle only, can this be done
with a weapon? Is it possible that I am doing all of this work for
nothing??
Edit: attached image of editor.
do you mean you want the turret to rotate and face things directly....... or you only want the turret to only attack stuff that is exactly 90 degrees angle to the turret?
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
Well in the map you uploaded no unit uses the turret.
You need to define your problem because with a 0 yaw the turret should only he able to hit stuff that is exactly within it's line of fire which should prevent it hitting most moving targets.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
In short, I want the tower to attack only to the right of it, which by my math is 90 degrees. So the way I figure, if the turret starts at 90, it should only be able to attack whats in front of it with the turret moving locked.
@ DrSuper Evil -> The map I uploaded is what I am trying to reproduce from scratch. The issue as I stated before was I am having issues doing so. Seems I might need a step by step method of adding a turret if it seems I didn't add one correctly.
Also the missile turret uses the turret, but the screen shot I uploaded was from a different map.
Yes, I have faced it 0 degrees, which seems on a different scale than
the turret for some reason.
But going back to the issue I have, is the linking of the turret. I have
already achieved what I want to do by editing another unit.
well... 0 degrees facing mean the unit is facing "east" or "right" as you called it.... so its facing the correct direction..... and you said you disabled the unit from turning correct?
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
Ok let me explain again. The map I uploaded is what I am trying to achieve on another map. Instead of recreating the missile turret, I created a unit from scratch. The issue I have is creating a turret and linking it properly to this unit I created.
@SoulCarverr ->
Yes, the unit is not turning.
Edit: Scratch that, it wasn't how silly of me. Forgot to check the flags. I will give an update in a moment, testing.
Edit (again): I feel like an idiot now, the issue was the flags the entire time. *sighs*
I have successfully altered a Missile Turret to attack only at a 90 degree angle. In the process of trying to replicate this unit, I found too many issues, so I created a unit (a tower with a working attack) from scratch that is 100% functional.
My issue is, when I tried to create a turret for said unit, I could not get the unit to function properly. For example, when I added the created turret to the base unit's "turret", and made the angle adjustments, the tower would attack, but not yield any effects or damage. After reverting the towers turret to it's regular state, the tower continued to act normally.
I created an actor for the towers turret (copied from the missile turrets actor), and I think I linked it properly.
Is there something I am missing in this turret creating process? I looked at the tutorial on these forums, but it wasn't too helpful considering the lack of detail and general goal to do something different.
If any additional information is needed please let me know.
The turret actor set to create on unit birth?
The turret actor Attachment - Yaw Query - Methods attached to the right attachment/AM?
The turret Yaw Arc was set in degrees (0-360)?
The unit Combat - Weapons - Turret field had your turret?
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
@DrSuperEvil: Go
The turret actor was set to create on Turret Enable, which I believe was from the missile turret. Should this be changed to create on unit birth, where the unit is the tower?
The turret actor 'Attachment - Yaw Query - Methods' - was set to "TurretZ".
The turret 'Yew Arc' was set to 0, so yes.
The unit 'Combat - Weapons - Turret' field did have my turret in place.
Also, as I know one has to change a weapon so the damage is done by the weapon projectile which I did, is the same true for a turret? Does one have to link it to the weapon to some degree?
Edit: I attempted to change the turret actor to create on unit birth, yielding the same results. Just to verify, we are talking about changing the actors 'events' to: "Msg Type: Unit Birth", "Source Name: <unit name>", and then the action "Msg Type" to create?
The Yaw Arc is how many degrees left and right of pointing straight the turret can turn to use its effects/damage. If this value is set to 0 it can only attack stuff dead straight infront of the unit. Set this to 45 for a 90 degree field of attack.
The turret purely enables the weapon to turn to face the target which is only a problem for stationary units like buildings. Some weapons like the marine gauss rifle are weapon effect>damage only without any projectile.
The upper part can be enable turret/actor creation/unit birth.name of unit.any
Also is it deffinitely just the turret and not the weapon that is the cause?
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
Right, I understand this, and this is my goal. I have the turret's Yaw starting at 90 degrees. I want the tower to shoot only in a strait line. But like I said, the issue I am having seems to be linking the turret correctly. I have already altered a missile turret to do what I want. In fact, i'll attach the test map to give you an example of what I am trying to do. Although that probably won't help much with my current issue.
Edit: I'm pretty sure it's the turret, because when I alter any turret yew setting it breaks the tower.
So if you dont want the turret to turn why use one?
0 Yaw = no turning, locked turret, no point having one.
Also is Yaw Rate >0?
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
@DrSuperEvil: Go
I want the tower to attack at a specific angle only, can this be done with a weapon? Is it possible that I am doing all of this work for nothing??
Edit: attached image of editor.
do you mean you want the turret to rotate and face things directly....... or you only want the turret to only attack stuff that is exactly 90 degrees angle to the turret?
Well in the map you uploaded no unit uses the turret.
You need to define your problem because with a 0 yaw the turret should only he able to hit stuff that is exactly within it's line of fire which should prevent it hitting most moving targets.
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
@SouLCarveRR: Go
In short, I want the tower to attack only to the right of it, which by my math is 90 degrees. So the way I figure, if the turret starts at 90, it should only be able to attack whats in front of it with the turret moving locked.
@ DrSuper Evil -> The map I uploaded is what I am trying to reproduce from scratch. The issue as I stated before was I am having issues doing so. Seems I might need a step by step method of adding a turret if it seems I didn't add one correctly.
Also the missile turret uses the turret, but the screen shot I uploaded was from a different map.
can you run a trigger for me and tell me what the facing angle of your turret is in game....
then do another trigger that tells you the Angle from your turret ... to the unit you want it too attack....
@SouLCarveRR: Go
Working on it now, haven't dealt with retrieving information before, text -> value from data table (am I going in the right direction?)
Erm.... Have you taken the Stats - Facing into account from the unit. It should be the facing angle on creation + 90 degrees.
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
@DrSuperEvil: Go
Yes, I have faced it 0 degrees, which seems on a different scale than the turret for some reason.
But going back to the issue I have, is the linking of the turret. I have already achieved what I want to do by editing another unit.
So putting your turret on another unit works or do you mean putting another unit's turret on your unit?
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
well... 0 degrees facing mean the unit is facing "east" or "right" as you called it.... so its facing the correct direction..... and you said you disabled the unit from turning correct?
@DrSuperEvil: Go
Ok let me explain again. The map I uploaded is what I am trying to achieve on another map. Instead of recreating the missile turret, I created a unit from scratch. The issue I have is creating a turret and linking it properly to this unit I created.
@SoulCarverr ->
Yes, the unit is not turning.
Edit: Scratch that, it wasn't how silly of me. Forgot to check the flags. I will give an update in a moment, testing.
Edit (again): I feel like an idiot now, the issue was the flags the entire time. *sighs*
Thanks for the help folks.
@SouLCarveRR: Go Debug triggers FTW.....