Flashlight mechanics

how would i make the flashlight rotate to my cameras rotation slightly after my camera rotates?

To rotate the flashlight you could use a script like this:

This.camera = this.entity.findByName(“ in camera name”)

This.entity.rotateLocal(this.camera.getLocalRotation)

I apologize for any spelling or grammar mistakes, it is hard to type in a Mobil device.

1 Like