So I have this problem I have spent a few hours already trying to solve and really, I'm not even sure there's an easy solution to it. What I'm trying to do seems simple (and who knows, maybe it is) :
Friendly unit A infects enemy unit B and disappears by doing so (it enters him, let's say). The enemy player cannot know his own unit is infected unless he has a detector nearby, and if he does, some cool effect will magically appear on the unit to warn the player it's been infected.
What makes it more complicated is that you can't modify the ''detected'' state of your own units. So I figured the only way to make this work would be to give unit A a channeling ability, make the unit totally invisible when it channels (no draw), and make the effect actor inherit the cloaked state.
So I tried it like 10 different ways and basically, I haven't managed to find one good solution. Either the unit A ends up being revealed with the effect (it's supposed to appear to be gone), either the effect ends up totally vanishing too. Anyway, well I hope I managed to explain it somewhat clearly!
If you set the visibility of the unit actor to false, or use the No Draw flag, it hides the entire actor, including all possible attachments, regardless of inherited values.
I would recommend to use the Set Opacity actor message instead, you can make the unit fully transparent, which is as good as invisible, but you can still attach effects and they will be visible, if they do not inherit the opacity.
Hey there,
So I have this problem I have spent a few hours already trying to solve and really, I'm not even sure there's an easy solution to it. What I'm trying to do seems simple (and who knows, maybe it is) :
Friendly unit A infects enemy unit B and disappears by doing so (it enters him, let's say). The enemy player cannot know his own unit is infected unless he has a detector nearby, and if he does, some cool effect will magically appear on the unit to warn the player it's been infected.
What makes it more complicated is that you can't modify the ''detected'' state of your own units. So I figured the only way to make this work would be to give unit A a channeling ability, make the unit totally invisible when it channels (no draw), and make the effect actor inherit the cloaked state.
So I tried it like 10 different ways and basically, I haven't managed to find one good solution. Either the unit A ends up being revealed with the effect (it's supposed to appear to be gone), either the effect ends up totally vanishing too. Anyway, well I hope I managed to explain it somewhat clearly!
Thanks,
If you set the visibility of the unit actor to false, or use the No Draw flag, it hides the entire actor, including all possible attachments, regardless of inherited values.
I would recommend to use the Set Opacity actor message instead, you can make the unit fully transparent, which is as good as invisible, but you can still attach effects and they will be visible, if they do not inherit the opacity.
Well thanks, it was actually really simple!