Cannot be used in this context because it lacks the `get' accessor

Error: Opsive.ThirdPersonController.RigidbodyCharacterController.AlwaysAim’ cannot be used in this context because it lacks the `get’ accessor

Not sure how to use the get accessor. weirdly enough can’t seem to google this question.

AlwaysAimSetting = GetComponent<RigidbodyCharacterController>().AlwaysAim;

Trying to do that so I can set it true or false later in the script with

AlwaysAimSetting = true;

Anyone know what I’m needing here thanks.
Cheers!

Bools are a value type. So this wouldn’t work anyway. Try this.

characterController = GetComponent<RigidbodyCharacterController>();
characterController.AlwaysAim = true;

Note I haven’t checked the docs on this.

oh ya that’s a good idea lol. Idk why I didn’t think about saving that component instead.

so can components only be saved to variables or what.