I am trying to put money into my mission. I want to have an addAction script so that the player can check money(I am using an addAction script because I don't know how to put text on the screen that updates the money).
When I put in the code below, when I use the action only a hint box that says "Wallet: " appears. I am new to scripting in arma. Does anyone know how I can fix this.
playerCash = 500;
player addAction ["<t color='#4B0082'>Check Money</t>", {hint 'Wallet: ' + str(playerCash)}];