guydatpwnz 0 Share Posted April 23, 2019 can someone tell me why Bank.close(); is getting a error? https://gyazo.com/9e20a011706fdb66b7378c688b4362a1 Link to comment Share on other sites More sharing options...
depwession 26 Share Posted April 23, 2019 why not use getBank rather than setting a GameObject? if(getInventory.isFull){ if(getBank.isOpen){ getBank.depositAllItems; //other options for depositing }else { getBank.openClosest; //you can choose specific banks, ie FALADOR_WEST and other shit } } (that's about as simplified as can get) Edit: I could be remembering some of the shit wrong but it's basically that Link to comment Share on other sites More sharing options...
ozeki6 32 Share Posted April 24, 2019 On 4/23/2019 at 8:51 AM, guydatpwnz said: can someone tell me why Bank.close(); is getting a error? https://gyazo.com/9e20a011706fdb66b7378c688b4362a1 Because Bank is a class that you can't access like that since it's not static. You're definitely new to scripting/programming and just by watching your code you have a lot to learn. What you want to do is getBank().close() although it won't work the way you want since the logic in that code is very bad. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.