Jump to content
Sign in to follow this  
Egosa-U

Display enemy number within trigger with hint

Recommended Posts

I've searched (but maybe not good enough), but i can't find a solution to have the Unit-Numbers displayed with a hint.

I have a trigger with following settings:

East, repeatedly, present,

check all 1 secs

condition = this

on Act. =

_xyz = east countside thislist; hintSilent "East-Units:" & _xyz

Here it stops, saying stuff like "local variable in global space" and all types off errors, after i tried stuff like:

_xyz = east countside thislist; hintSilent ["East-Units:", _xyz]

Can someone please tell me the right code? Thnx in advance.

Share this post


Link to post
Share on other sites

I once tried this ,but it only showed the initial number of enemies in the area....

I can't find a way to update the num of enemies in the trigger

numenemys=east countside thislist;hintsilent format ["%1",numenemys]

I think you mis-used hintsilent instead of hintsilent format.

Share this post


Link to post
Share on other sites

I'll try that one when i come home from work.

But how do i add the "Enemy-Units: " in front of the %1 ? Can i just put it there or do i need a '&'?

EDIT: I just can put it there. No '&' needed.

I somehow got in the wrong forum though - oght to be ArmA 2. Never Mind - should work for both.

Edited by Egosa-U
Answer

Share this post


Link to post
Share on other sites

It works, but as you said just for the first time.

I've played around with it to see, how often or though what it could be triggered constantly - no clue, but i think i'll work around that prob.

Thnx.

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  

×