So here's a conundrum of mine. I plan to rework various cloud "units" on my map. They reduce max vision range already for units wander into it.
What I wonder if possible to have Vision blocker properties added. Mind you it is a stationary unit BUT the possibility for them to be moved or destroyed is there. An blocked or reduced vision from the outside into the cloud would be optimal.
These clouds exist as neutra map objects to somewhat smaller player deployed temp area control abilities/buffs/hazards.
Any ideas how implement such, without murdering low end Players With toasted toaster syndrome lol.
The only idea that comes to my mind to achieve this, would be to give the clouds a buff with a periodic search area effect that grants nearby units another buff with the "cloak", "detector" and "resistant" fields checked within "behavior: modification" "behavior: state flags", then set "behavior: modification" "unit: detect", for the buff applied to the units, to a value equal to the radius of the search area effect used by the cloud object to apply the buff and finally go to the "behavior: modification" "unit: detect filters" field and set the type "resistant" to "required".
This will make all units within the cloud's area of effect invisible, but allows them to see other units that are within the cloud as well, by cloaking them but giving them the ability to detect only cloaked units that have the "resistant" status that is applied by the buff given by the cloud's effect.
I don't know if this is helpful but nothing else comes to my mind.
So here's a conundrum of mine. I plan to rework various cloud "units" on my map. They reduce max vision range already for units wander into it.
What I wonder if possible to have Vision blocker properties added. Mind you it is a stationary unit BUT the possibility for them to be moved or destroyed is there. An blocked or reduced vision from the outside into the cloud would be optimal.
These clouds exist as neutra map objects to somewhat smaller player deployed temp area control abilities/buffs/hazards.
Any ideas how implement such, without murdering low end Players With toasted toaster syndrome lol.
The only idea that comes to my mind to achieve this, would be to give the clouds a buff with a periodic search area effect that grants nearby units another buff with the "cloak", "detector" and "resistant" fields checked within "behavior: modification" "behavior: state flags", then set "behavior: modification" "unit: detect", for the buff applied to the units, to a value equal to the radius of the search area effect used by the cloud object to apply the buff and finally go to the "behavior: modification" "unit: detect filters" field and set the type "resistant" to "required".
This will make all units within the cloud's area of effect invisible, but allows them to see other units that are within the cloud as well, by cloaking them but giving them the ability to detect only cloaked units that have the "resistant" status that is applied by the buff given by the cloud's effect.
I don't know if this is helpful but nothing else comes to my mind.
Hello,
You can use footprints with "block vision" flag. Make it hollow so that the unit inside don't see the outside and conversely.
Create a footprint for each shape you need for your clouds.
Set the footprint to the unit as "Footprint" (not "Placement footprint").
Have a nice day.