I am wondering how would I make a shadow of an AI/ghost appear through a window then disappear, I have been trying for a few days now and don’t know what to do.
To clarify: I only want the shadow to be visible, I do not want the mesh or physical object to be visible in game. So in the end, a player should see a shadow of something for a few seconds and then the shadow should be gone.
oh ■■■■, that ruins my idea for a game! Is there, no way to have a character cast a shadow at certain times but not have the character physically present at the same time? I know you can do it with actors.
As far as I know it’s not possible. Problem is that the lighting of AI characters is calculated at runtime and if the object is set to be invisible, it’s not going to be calculating a shadow because there is nothing to calculate a shadow from.
That is the thing. I know how to turn shadows on and off so I thought I could answer this but it wont work if the mesh itself is not visible.
Best thing my mind could come up with is if you don’t care if the Ai is actually there to cast said shadow then I would just make a black decal with default settings as it would give the illusion of a shadow in the shape of your Ai Char and then spawn it and De-spawn it as needed giving you the illusion of a shadow. Might even be able to animate it if your good with materials and animations.
Let me know if this will work for you and I can guide you further.