Character Controller mouse click events

Hey everyone,

I am looking for a way to initiate actions based on mouse clicks for objects that have a character controller (as opposed to a collider). Something like OnMouseDown() but for character controllers. Does something like this exist?

Thanks.

There are multiple methods for using Input. You could use Input.GetMouseButtonDown(0) for a left mouse click, or you can use Input.GetButtun("Fire1"). This will get the controls mapped within the settings in the editor. They can be found under Edit -> Project Settings -> Input. There are lots of documents that can be found online, as well as previous posts on this forum. As a last option, I would simply go into the script and type Input. and see what all the options are that pop up in your intellisense.