I'm trying to swap an unit's actor.
I have this building that can be upgraded to a variety of different ones.
So to change the actor I send the actor a message to "Destroy" and then I attach a new one to the unit.
But I get an annoying warning "xxx Attempting to host off xxx which is already hosted off though not necessarily directly"
What can I do to stop getting this warning?
There can only be one Unit type actor in existence at any time. Destroy the old Unit actor before creating a new one. Also under the Events of the actor this can be done without triggers.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Well I do tell the actor to "Destroy", what more can I do?
Reading the warning, it seems like it tells me that it was already destroyed yet I'm trying to destroy it again which is simply false.
I can probably implement it with actor events, but I'm trying to understand why I get the warning.
Modelswap works, but I need to replace the actor, as if I just swap the model I have to adjust the scale too since different actors act differently.
The problem comes from the line "Actor - Attach xxx to Origin on Recruit", I think.
Without it I get no warning, but I can't replace it successfully with something else.
I tired "Actor - Send actor message "Attach RecruitRuins {Origin 0} SOpAttachOrigin" to main actor of an unit, but it did nothing.
Morphing is done by swapping the whole unit with a different one. Creating an unit for each of my actor swap needs is going to be nuts. Tho that was a good suggestion, maybe I can find something similar that doesn't use a new unit to swap the actor.
Morphing is done by swapping the whole unit with a different one. Creating an unit for each of my actor swap needs is going to be nuts. Tho that was a good suggestion, maybe I can find something similar that doesn't use a new unit to swap the actor.
are yournunits that different from each other? if not, consider setting all your variation as children of the base unit, and just host the differences on each. unless you got tooooooo many variations
I'm trying to swap an unit's actor.
I have this building that can be upgraded to a variety of different ones.
So to change the actor I send the actor a message to "Destroy" and then I attach a new one to the unit.
But I get an annoying warning "xxx Attempting to host off xxx which is already hosted off though not necessarily directly"
What can I do to stop getting this warning?
There can only be one Unit type actor in existence at any time. Destroy the old Unit actor before creating a new one. Also under the Events of the actor this can be done without triggers.
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
Well I do tell the actor to "Destroy", what more can I do?
Reading the warning, it seems like it tells me that it was already destroyed yet I'm trying to destroy it again which is simply false.
I can probably implement it with actor events, but I'm trying to understand why I get the warning.
The error sounds more like you are trying to create the new one before the old one is destroyed.
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
Try sending a modelswap message.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Modelswap works, but I need to replace the actor, as if I just swap the model I have to adjust the scale too since different actors act differently.
The problem comes from the line "Actor - Attach xxx to Origin on Recruit", I think.
Without it I get no warning, but I can't replace it successfully with something else.
I tired "Actor - Send actor message "Attach RecruitRuins {Origin 0} SOpAttachOrigin" to main actor of an unit, but it did nothing.
consider checking how morphing units do the thingy. point of interest would be burrowed units i guess
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!
Morphing is done by swapping the whole unit with a different one. Creating an unit for each of my actor swap needs is going to be nuts. Tho that was a good suggestion, maybe I can find something similar that doesn't use a new unit to swap the actor.
are yournunits that different from each other? if not, consider setting all your variation as children of the base unit, and just host the differences on each. unless you got tooooooo many variations
Go play Antioch Chronicles Remastered!
Also, coming soon, Antioch Episode 3: Thoughts in Chaos!
Dont like mapster's ugly white? Try Mapster's Classic Skin!
I have a single unit and many actors to replace it's actor with. Only one unit. How do you propose I set variations as children?
I would just use actor events.
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