Jump to content
Sign in to follow this  
Rejn

Visible Counter

Recommended Posts

I have seen this being asked before I think but couldnt find it under search with visible + counter or counter for that matter...

Im looking to make a variable called counter.

Every time an enemy unit dies it should add one to the counter.

My initial thought is since most of the enemy units have a hide body script attached to an eventhandler I might just make a counter1 +1 but it may not be accurate not sure..

Anyway i was wondering how would I make the counter number show up on screen? I'd like it on the top left or right hand corner or bottom of screen...

If anyone has the time to help me out would be appreciated... if its insanley complicated I might just forget it all together. thanks.

Share this post


Link to post
Share on other sites
My initial thought is since most of the enemy units have a hide body script attached to an eventhandler I might just make a counter1 +1 but it may not be accurate not sure..

Anyway i was wondering how would I make the counter number show up on screen? I'd like it on the top left or right hand corner or bottom of screen...

adding the counter to the "killed" eventhandler should work

for showing scores people usually add an radio command (see triggers) that starts an "hint" command

QuietMan

Share this post


Link to post
Share on other sites

Good idea thanks smile_o.gif

Ok ive placed counter1=0 in player init field.. and Ive got the hint working via:

hint format ["Enemy casualties: %1],counter1]

However when the units die I've added this to their hidebody sqs:

counter1 +1

Unfortunatley that doesnt do the trick as counter1 stays at zero.. just wondering how to I write it so that +1 is added to the value of counter1?

Share this post


Link to post
Share on other sites

oh mabey counter1=counter1 +1?

EDIT: Yep thats it. Thanks works biggrin_o.gif

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  

×