#Third person cam error message

1 messages · Page 1 of 1 (latest)

fair helm
#

sorry to still be an annoyance but I keep getting this error message an d I dont know hat it is asking of me to do

glad cloud
#

As the error says, you have a variable called 'Cam' which is usassigned, meaning it has a null value. Therefore, when your script tries to access the value of the variable, it will throw you an error because when any line of cofe tries to accesd the value, it doesn't expect it to be null.

I would check whatever tutorial you're following the moment after the variable is created.

fair helm
#

oh ok thx

#

ill try that later

fair helm
#

and how would i assign it by any chance

glad cloud
#

When you create a public variable, it appears as a field of your component. In the case of your script, I assume you need to drag your camera to that field.

#

I just want to quickly point out that I don't really like giving away answers because it doesn't feel like helping the other learn. From my perspective it is way more efficient to spend as many time as needed to understand somethinf rather than constantly asking for answers. For example, if you don't know how to assign variables but you have the hint that what you need to do is assign them, literally search that on google and there may be already answered related questions.

I'm not saying any of this to blame, I'm just trying to be a bit instructive in how I personally think your thinking methodology shouls be when facing problems. Atleast that's how I learned, spending hours and hours trying to fully understand the aspects of game development that I know nowadays, so yeah, don't take it in a negative way. 😄

fair helm
#

oh ok i understand that ye i do need to dim down asking to much in helping me well thx for the hint ill try and figure it out in my own way

#

ok ib figured it out thank you

#

i was placing the wrong cam

#

i was meant to be using the main cam for this thanks alot

glad cloud
#

I'm glad you found it 🙂

fair helm
#

Ye I just need to remember to assign stuff