Bohemia Interactive Forums  

Go Back   Bohemia Interactive Forums > BI MILITARY GAMES FORUMS > ARMA: ARMED ASSAULT / COMBAT OPERATIONS EDITING > ARMA - MISSION EDITING & SCRIPTING

ARMA - MISSION EDITING & SCRIPTING For discussing the technical aspects of creating custom ArmA missions as well as scripting.

Reply
 
Thread Tools Display Modes
Old 02-08-2010, 05:39 PM   #1
Egosa-U
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
Here it stops, saying stuff like "local variable in global space" and all types off errors, after i tried stuff like:

Code:
_xyz = east countside thislist; hintSilent ["East-Units:", _xyz]
Can someone please tell me the right code? Thnx in advance.
Egosa-U is offline   Reply With Quote
Old 02-09-2010, 02:15 AM   #2
haroon
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.
__________________
Nothing is impossible for a willing mind!

To Armaholic
haroon is offline   Reply With Quote
Old 02-09-2010, 06:19 AM   #3
Egosa-U
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
Egosa-U is offline   Reply With Quote
Old 02-10-2010, 05:39 AM   #4
Egosa-U
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.
Egosa-U is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:30 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.