and wanted to add the turret via script to an unit. My problem is, that it isn't working at all.
I tried it with
Unit -add Attachment Turret at Head of (a siegetank on the map) this adds the actor to the unit
Unit - add Attachment Turret to (a siegetank on the map) which uses Attachment Turret Adds the weapon and the turret to the unit.
I don't know if this is the original english syntax, I've got the german editor. Sadly everything is (sometimes poorly) translated.
My Problems with this are: The turret is supposed to rotate but won't do that and the turret won't shoot at all. Am I doing something wrong? Do I have to enable this stuff somehow?
Aaaand last but not least: Is this a trigger or a data problem?
In order for a turret to function properly on a unit with the tracking, it requires that the unit has a Weapon with a Turret object as well as a Turret actor linked to the Turret object. Likely a Turret object isn't added along with the weapon.
In order for the added actor to animate it needs an event that plays the correct animation when the weapon is fired.
Thank you very much, now the turret is rotating after I added the turret in the Datainspector. Also the weapon is shooting when I add it via script, but now is the old weapon not firing anymore.
Also the via script added actor (attachment turret) is rotating while idle,
but if I want to fire, the main turret of the siegetank rotates to the target and not the new added turret,
while this turret seems to fire.
Do you guys have any idea what could be wrong with that? It seems to be 2 problems at once though, one that prevents from both weapons to attack simultaniosly and one that chooses the wrong turret for the attack animation.
Again thanks for any help.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello there,
I got a little problem.
I've experimented with this tutorial : http://www.sc2mapster.com/forums/resources/tutorials/8926-data-working-with-attachments-beginner-difficulty/
and wanted to add the turret via script to an unit. My problem is, that it isn't working at all.
I tried it with
Unit -add Attachment Turret at Head of (a siegetank on the map) this adds the actor to the unit Unit - add Attachment Turret to (a siegetank on the map) which uses Attachment Turret Adds the weapon and the turret to the unit.
I don't know if this is the original english syntax, I've got the german editor. Sadly everything is (sometimes poorly) translated.
My Problems with this are: The turret is supposed to rotate but won't do that and the turret won't shoot at all. Am I doing something wrong? Do I have to enable this stuff somehow?
Aaaand last but not least: Is this a trigger or a data problem?
Thanks for any help.
In order for a turret to function properly on a unit with the tracking, it requires that the unit has a Weapon with a Turret object as well as a Turret actor linked to the Turret object. Likely a Turret object isn't added along with the weapon.
In order for the added actor to animate it needs an event that plays the correct animation when the weapon is fired.
Most likely data problem
Thank you very much, now the turret is rotating after I added the turret in the Datainspector. Also the weapon is shooting when I add it via script, but now is the old weapon not firing anymore.
Also the via script added actor (attachment turret) is rotating while idle, but if I want to fire, the main turret of the siegetank rotates to the target and not the new added turret, while this turret seems to fire.
Do you guys have any idea what could be wrong with that? It seems to be 2 problems at once though, one that prevents from both weapons to attack simultaniosly and one that chooses the wrong turret for the attack animation.
Again thanks for any help.