Download

Attaching spotlight to character

I’m making nightvision in ue4, I’ve done the post processing, but how can I attache a spotlight to my characters head that turns on when you press a button, and aims wherever the head looks

Attach a spotlight to the character’s mesh, then set it to a bone near the head and adjust accordingly. In the event graph of your character make an action event using action mappings (project settings -> input) in which pressing a certain button, let’s say “L”, toggles the visibility of the spotlight (this would have to be referenced) using the “toggle visibility” node.