So, kind of going off of my last post about gui images and such, I am now needing to send one of the temp/this variables I have to another weapon's function to continue my process and system. I have this:
I used both temp and this variables attempting to get it to work, as well as this and thiso, because I don't really get what they are and was desperate.
I tried posting code but incapsula kept stopping me for some reason.
Basically i have tempvars creating the gui image, then using a catchevent to catch right mouse click, then setting the obj.var to a this.var, and using GuiControl.onSelect in a pop up that shows up when right clicking to switch the 2 selections and either drop the item or send to a shop. Dropping the item works fine and so does everything else, but sending to shop (which is a public function in a different weapon, the shop weapon) results in null.
I'm thinking that the var has just been passed to much, or however you put it, but I don't really know, and if it has been, I don't know another way to make this work.