Jump to content


Photo

How to show a Counter/Timer to specific player


  • Please log in to reply
1 reply to this topic

#1 Goldtouch

Goldtouch

    title available

  • Hosted
  • 449 posts

Posted 22 February 2014 - 11:51 AM

I made a simple script that simply said works like a clock. however when playing in multiplayer this Timer shows up with the amount of players. So if you do a 3v3 you'll see the timer 6 times. Anyway how to only show 1 timer per player..

 

Here is my approach

 

Initializer [ns A D]

*** IF ***
     Is the game in a skirmish or multiplayer mode == TRUE
*** THEN ***
  Set 'g_clock' to 0.00 seconds. 
  Show 'g_clock' with text Localized String: 'SCRIPT:Clock'
  Enable Script 'increment_clock'.

increment_clock [ns a nd]

*** IF ***
    True.
*** THEN ***
  Add  1  to counter 'g_clock'

Edited by THORONGlL, 22 February 2014 - 11:57 AM.


#2 Goldtouch

Goldtouch

    title available

  • Hosted
  • 449 posts

Posted 22 February 2014 - 07:13 PM

Nevermind found a solution myself






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users