![]() |
|
|
|||||||
| ARMA - MISSION EDITING & SCRIPTING For discussing the technical aspects of creating custom ArmA missions as well as scripting. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Corporal
Join Date: Jan 2010
Location: Germany
Posts: 91
|
Display enemy number within trigger with hint
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. = Code:
_xyz = east countside thislist; hintSilent "East-Units:" & _xyz Code:
_xyz = east countside thislist; hintSilent ["East-Units:", _xyz] |
|
|
|
|
|
#2 |
|
Private First Class
Join Date: Jul 2009
Location: Yangon.Myanmar
Posts: 39
|
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. |
|
|
|
|
|
#3 |
|
Corporal
Join Date: Jan 2010
Location: Germany
Posts: 91
|
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. Last edited by Egosa-U; 02-10-2010 at 05:39 AM. Reason: Answer |
|
|
|
|
|
#4 |
|
Corporal
Join Date: Jan 2010
Location: Germany
Posts: 91
|
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. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|