#(OOP) why does my system counts the Player object as Character?

1 messages · Page 1 of 1 (latest)

vale frost
#

These lines of code must get as an argument the player object (not the character itself, but the player object), and i was guessing that self.Player stands for the player object but the system said that self.Player == Character, and when i was trying to get self.Character = player.Character it just said that "character isn't a valid member of (my character)" which represents that somehow my player value turned into the character value. I'm also pinning the screenshot where those functions are being called + another module that basically is the base of the function.

And please, i beg, don't tell me anything about the GameCharacter property because it's not that thing, (well i could be dumb so if ykyk)

thorny ginkgo
#

Could you specifically say what problem you have?

#

You're explanation doesnt make sense bc self.Player should be Player type...

vale frost
#

In short.

I say that i give the function a parameter player which is player type right.
So it must be player.
But somehow system gets the PLAYER value as a CHARACTER

#

and i got no clue why

#

i mean system gets NOT THE PLAYER but THE CHARACTER

#

and puts THE CHARACTER inside the "self.Player"

#

and it gets me an error when i try to get the self.Character

#

because it would be equal to player.Character.Character

#

nevermind i solved the problem

thorny ginkgo