I added a turret to a building but I'm getting a weird actor error sometimes. The turret duplicates itself and a frozen copy of the turret stays behind.
It onlyhappens when the turret's target is killed by an allied unit. If it's not firing, or if it's fighting a battle all on it's own, it's fine.
When I lift up the building, the problem fixes itself either upon liftoff or when the structure lands. Very weird, but I am not so much an expert at turret attachment. Here's what the duplicate turret looks like. 1 Rotating, firing, and acquiring targets normally, the other frozen in place and bugged out.
Lifted off, frozen artifact of actor sometimes remains.
Yeah I thought that too so I did a debug where the the turret actor is only created when a specific behavior is given to the structure, and the only way the behavior is brought into the game is via this one debug trigger. Yet a copy of the turret will still appear during a battle when switching targets after its original target is killed (very weird time to create it, regardless).
A few patches ago this was working fine. This makes me think I've discovered a bug, but I hate coming to that conclusion. Thanks for your comment.
I added a turret to a building but I'm getting a weird actor error sometimes. The turret duplicates itself and a frozen copy of the turret stays behind.
It only happens when the turret's target is killed by an allied unit. If it's not firing, or if it's fighting a battle all on it's own, it's fine.
When I lift up the building, the problem fixes itself either upon liftoff or when the structure lands. Very weird, but I am not so much an expert at turret attachment. Here's what the duplicate turret looks like. 1 Rotating, firing, and acquiring targets normally, the other frozen in place and bugged out.
Lifted off, frozen artifact of actor sometimes remains.
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)
Sounds like it is being created twice but a second turret actor is not linking it to the turret on the unit.
I would check all events that use the Create actor event action for that actor and the host.
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 thought that too so I did a debug where the the turret actor is only created when a specific behavior is given to the structure, and the only way the behavior is brought into the game is via this one debug trigger. Yet a copy of the turret will still appear during a battle when switching targets after its original target is killed (very weird time to create it, regardless).
A few patches ago this was working fine. This makes me think I've discovered a bug, but I hate coming to that conclusion. Thanks for your comment.
<Click Here> To See My Epic Single Player Campaign (LifeForceCampaign.com)