I'm trying to change the surface type (mat_concrete => mat_water) of a GeomEntity using a event with a DestroyableObject.
First, I tried using a Entity:Material : when the game start, the GeomEntity has the texture floor.cfg with a surface type mat_concrete ; and when the DestroyableObject is dead, the texture is suppose to change to floorwet.cfg (where of course the surface type is mat_water). It didn't work.
Second, I tried using 2 GeomEntity : when the game start, the GeomEntity which has the texture floor.cfg is unhidden and the GeomEntity which has the mat_water surface type is hide. When the DestroyableObject is dead the first GeomEntity is hide and the second one is unhidden. It didn't work too.
The two options is in the same flowgraph in the attached files.
One precision very odd. If, instead of only change the surface type, I changed the diffuse color in the lighting settings it works, the diffuse color change with the both option with the same flowgraph (so I suppose my flowgraph is correct). Of course if I change the diffuse color AND the surface type, only the diffuse color is changes.
Another precision : I'm using sandbox with crysis 2, not the CryEngine3 SDK
I don't know if I'm doing bad or if it's "normal"
I'm open to any suggestions.
edit : show options in the picture