Home   Help Search Login Register  

Author Topic: I want an array of the units in a group  (Read 1285 times)

0 Members and 1 Guest are viewing this topic.

Knowlife

  • Guest
I want an array of the units in a group
« on: 21 Nov 2004, 21:19:14 »
I have searched through the offical comref and found nothing on this, I want the handels to all the people in a certain group, but there are no command that returns anything like that. Any help would be appreciated...

The reason I want a command like this is that I want the leader of ai groups to call for support when the guys in the groups are wounded/nearly run out of ammo/need repairs for their vehicles. the leader will be running a script that continuously checks the status of the guys in the group, but he need their handels to do so.


btw. by "handel" I mean name, or any other way to identify a unit.

Offline Sentinel

  • Contributing Member
  • **
  • World is tough and I'm tougher!!
Re:I want an array of the units in a group
« Reply #1 on: 21 Nov 2004, 21:36:30 »
Dierectly copied from official comref

units grp
Operand types:
    grp: Group
Type of returned value:
    Array
Description:
    Arrays of all units in the group.

Example:
    player in units group player


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:I want an array of the units in a group
« Reply #2 on: 21 Nov 2004, 21:41:20 »
AI group leaders do all that stuff anyway.
Plenty of reviewed ArmA missions for you to play

Knowlife

  • Guest
Re:I want an array of the units in a group
« Reply #3 on: 21 Nov 2004, 21:47:26 »
Whoa, that was some fast replys. :)
I'm sorry I missed something that obvious, but i did really search throught the comref (by using the browsers 'search' function on the command list that is)

Anyway, thanks... ;)


wait a minut,
Quote
AI group leaders do all that stuff anyway.
Does that mean that they call for support on their own? How do I register when they do that? I've never heard of this before...

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:I want an array of the units in a group
« Reply #4 on: 21 Nov 2004, 22:52:26 »
If you put a group of, say, repair trucks on a "support" type waypoint, then they will automatically go and repair damaged vehicles. Same goes for fuel and ammo trucks.

Guys on the ground will automatically call for support from nearby medics in other groups. You don't even need a support WP for that. However, there is no way to automatically make infantry re-arm themselves, aside from scripting.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Knowlife

  • Guest
Re:I want an array of the units in a group
« Reply #5 on: 21 Nov 2004, 23:02:45 »
I doubt what your saying, 'cause I just tried this two minutes ago:

I put my player character in a squad and set his ammo to near nothing, then a set a ammo truck about 300 meters to the east of me on a road and give it a support waypoint about 2 meters in front of it. Then I run the mission... I see the truck move to the waypoint and halt, the I use the standart radio command for calling ammo support (5-1-3 or something like that)... But nothing happens, it just sits there...

I also put another squad on the map and redused their ammo and health, but they neither called for the ammo truck nor the medic that I placed 200 meters from them... Am I missunderstanding something? :-\

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:I want an array of the units in a group
« Reply #6 on: 21 Nov 2004, 23:22:08 »
Quote
I put my player character in a squad and set his ammo to near nothing, then a set a ammo truck about 300 meters to the east of me...
You were in a vehicle, right? Maybe you have to be the commander or driver. I've actually never used support WP's myself, I'm just regurgitating what I've heard elsewhere. Try searching the forums for more info; there might be some little "caveats" in using those wps...

Quote
I also put another squad on the map and redused their ammo and health, but they neither called for the ammo truck nor the medic that I placed 200 meters from them... Am I missunderstanding something?  

I assume these guys were on foot, if you put a medic down, so I won't repeat myself about the ammo truck only working with vehicles. However, try leaving the guys at full health, then shooting one of them until they are nearly dead. If it still doesn't work, then I guess I'm wrong. But I've seen guys get healed from medics not in their group before, so there is SOME way to do it...
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:I want an array of the units in a group
« Reply #7 on: 21 Nov 2004, 23:32:43 »
I've also seen ai re-arming......from dead comrades and ammo crates.


Planck
I know a little about a lot, and a lot about a little.

Knowlife

  • Guest
Re:I want an array of the units in a group
« Reply #8 on: 21 Nov 2004, 23:48:51 »
It seems that when a support truck reaches a support waypoint, the driver hops out and stands by the truck... I made a little test with some m1a1's some rpg soldiers, and some repair truck on support waypoint... The m1a1's brutally murdered the rpg soldiers while only taking minor damage, when the abrams got hit, they drow to the repair trucks and got repaired, bu no nothing about calling for support...
Quote
I've also seen ai re-arming......from dead comrades and ammo crates.
Now that you mention it, so have I. In some missions I have tried calling "ammo low" (5-something), and the group leader tells me where to re-arm myself, the ai do this sometimes  too...

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:I want an array of the units in a group
« Reply #9 on: 22 Nov 2004, 00:02:16 »
Quote
Now that you mention it, so have I. In some missions I have tried calling "ammo low" (5-something), and the group leader tells me where to re-arm myself, the ai do this sometimes  too...

thats it exactly.... and same tings go 4 injuries, when theres a medics nearby, the leader will tell the soldiers 2 go 2 them even if theyre not from same group (u can know that if u ever played assult with more than 1 squad and ur leader sent the medic 2 support.... as 4 support WP.... theyre very very limited, as they tend 2 support only 1ce... and dont really like helpin foot soldiers  ::)

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Knowlife

  • Guest
Re:I want an array of the units in a group
« Reply #10 on: 23 Nov 2004, 17:05:21 »
...After playing around with it a little more I have come to the conclusion that the standart form of calling support is'nt to rely on, not until someone finds out exactly what makes it tic, thank you for your help.