I have a playerObject which has several functions and variables in it’s table.
In the spawn function of the playerObject I call createBlockingObject (my own function) where I pass the name of the playerObject so when a NPC catches the blockingObject it can see what the name of the player was by looking at the blockingObject.playerName.
It works fine but what if I wanna reach more variables or execute functions on the player?
Could I instead of only passing the playerObject’s name variable, just pass the whole playerObject (self)?
For example if there are 30 blocking objects, will it affect the memory alot? or is passing the “self” of the playerObject just a reference to the table?