Jump to content
Sign in to follow this  
Arma_Fan

Tick updater?

Recommended Posts

I want however many kills blufor gets to display with hint format ["West Kills: %1"]; ...so I've tried using

hint format ["West Kills: %", scoreSide West]; but it only shows a "0" for the count...I was told to have the game update every frame to display everytime they get a kill? Anyone know hows I can do this? D:

Share this post


Link to post
Share on other sites

You need to keep repeating the hint. The simplest way to update the score is to put it in a loop that never ends, like this.

scoreMon.sqf

while {true} do                            // true condition will never change
{
   hint format ["West Kills: %1", scoreSide West];
   sleep 5;                                          // wait 5 seconds then repeat the hint
};

then add to your init.sqf

execVM "scoreMon.sqf";

Edited by Lifted86
Typo, how'd i miss that XD

Share this post


Link to post
Share on other sites
You need to keep repeating the hint. The simplest way to update the score is to put it in a loop that never ends, like this.

scoreMon.sqf

while {true} do                            // true condition will never change
{
   ["West Kills: %", scoreSide West];
   sleep 5;                                          // wait 5 seconds then repeat the hint
};

then add to your init.sqf

execVM "scoreMon.sqf";

Thankyou! What do I do with the init.sqf ...do I add it in a trigger somewhere or something?

Share this post


Link to post
Share on other sites

create a init.sqf in you mission folder and write execVM "scoreMon.sqf"; in it.

The init.sqf runs at mission start by itself

Share this post


Link to post
Share on other sites

while {true} do                            // true condition will never change 
{ 
  hint format ["West Kills: %1", scoreSide West]; 
   sleep 5;                                          // wait 5 seconds then repeat the hint 
};  

Noticed an issue with that code, it was missing hint format. Fixed.

EDIT: was also missing %1

Edited by zooloo75

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×