_qor 11 Posted January 15, 2014 (edited) I want to make kinda kills/deads scoreboard for SP. Therefore I created two gamelogics whose names should get a value (+1 for each dead). Something like gamelogic = 1 Sometimes I want to return these values to display the deads. So how can I increase the values and how can I return them? I just cant find out... Would have used addScore but this apparently works only in MP Edited January 16, 2014 by _qoR Share this post Link to post Share on other sites
amphib 10 Posted January 16, 2014 Skip the gamelogics and just initialize the variables in your init.sqf. mykills = 0; mydeaths = 0; Then for each kill/death, you simply run the command mykill = mykill + 1; (You'll probably want an eventhandler to do this whenever a kill/death occurs) You reference the values by just using the variable names. For example, if you want to display the current "score" when triggering a trigger you could use the command hint format ["Kills: %1 \n Deaths: %2",mykills,mydeaths]; //Would display a hint with the variable values. Share this post Link to post Share on other sites
_qor 11 Posted January 16, 2014 Exactly what I have been trying, dont know why it didnt work that time. Thanks! Of course it works... Share this post Link to post Share on other sites