OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BGrenko on 14 Oct 2002, 18:03:12

Title: Need help with counting live soldiers
Post by: BGrenko on 14 Oct 2002, 18:03:12
I'm trying to set up a trigger, called by radio, that executes a script that will count live East Soldiers and then place the number along with some text in the hint box. Kind of a way to get an idea how many bad guys are still out there lurking at any given time.

I toyed around with the countside command and hint text command but couldn't seem to pull my head out of my ..... and get it working.

I'm sure it's fairly simple. If someone wouldn't mind sending some help my way, I'd surely appreciate it



Title: Re:Need help with counting live soldiers
Post by: Bremmer on 14 Oct 2002, 18:24:28
Hello BGrenko

OK first make an east present trigger big enough to cover your total play area. Leave condition as this and set On Activation as eastguys = thislist. This creates an array of all the russian units in the area.

Set up your radio trigger and put in its On Activation:

hint format ["East left : %1", east countside eastguys]

I think that should work  :)
Title: Re:Need help with counting live soldiers
Post by: BGrenko on 15 Oct 2002, 02:05:36
Problem solved thanks for the help !
Title: Re:Need help with counting live soldiers
Post by: Bremmer on 15 Oct 2002, 02:32:15


[attachment deleted by admin]