im trying to make toggable option ingame that would Not render shadows on Medium or higher Shader setting and would create blow shadows if Unit actor has such flag set.
I have working Toggable option and actor events that would allow or disallow display of shadows and add blob shadows. But cant make them update properly as it only updates itself only when Unit Actor is created and not updated dynamicly with Upgrade change that is linked to show or hide shadows.
in image below i have actor events settings. There was Upgrade.*.Remove but it didnt worked..
u need to create blob shadow with same approach then (send message "Create GroundShadow").. upgrades doesn't work dynamicaly you will have to use triggers or behaviours to set up your system.
With message "Destroy". If you using triggers there are function "Send Actor Message Via Name", in the "Name" parameter you should put actor's name or it's reference (in your case just put GroundShadow) and in Actor parameter you should put actor of unit. If you using data approach with behaviours you can put Behaviour.Shadows.Off => Destroy, and in the "Target:" write "GroundShadow" in the unit's events.
Anyway to make the shadow rendering effect only for specific player. Like player A have turned option off and has no shadows in game while player B does have and A player wouldnt effect B. as now Its just effects player A units and not player B. Not tested but probably it would turn Option for player B the render of shadow while his Option is in reverse effect. Would act like real graphical settings for specific player.
Edit: solution to have 20 behaviors for every player?
im trying to make toggable option ingame that would Not render shadows on Medium or higher Shader setting and would create blow shadows if Unit actor has such flag set.
I have working Toggable option and actor events that would allow or disallow display of shadows and add blob shadows. But cant make them update properly as it only updates itself only when Unit Actor is created and not updated dynamicly with Upgrade change that is linked to show or hide shadows.
in image below i have actor events settings. There was Upgrade.*.Remove but it didnt worked..
it works fine for me ->
@abvdzh: Go
well this would be one way to solve partly the problem, still tho would want those blob shadows to have..
Edit: and it seems like it would set For every player this setting.. so doesnt work well then..
u need to create blob shadow with same approach then (send message "Create GroundShadow").. upgrades doesn't work dynamicaly you will have to use triggers or behaviours to set up your system.
@abvdzh: Go
How to delete Shadow Blobs? in actor events
With message "Destroy". If you using triggers there are function "Send Actor Message Via Name", in the "Name" parameter you should put actor's name or it's reference (in your case just put GroundShadow) and in Actor parameter you should put actor of unit. If you using data approach with behaviours you can put Behaviour.Shadows.Off => Destroy, and in the "Target:" write "GroundShadow" in the unit's events.
@abvdzh: Go
k thanks, seems to work..
Anyway to make the shadow rendering effect only for specific player. Like player A have turned option off and has no shadows in game while player B does have and A player wouldnt effect B. as now Its just effects player A units and not player B. Not tested but probably it would turn Option for player B the render of shadow while his Option is in reverse effect. Would act like real graphical settings for specific player.
Edit: solution to have 20 behaviors for every player?