Home   Help Search Login Register  

Author Topic: Getdammage of group  (Read 658 times)

0 Members and 1 Guest are viewing this topic.

Offline The-Architect

  • Former Staff
  • ****
  • Bite my shiny metal...
    • Bob's Un-official Flashpoint Page
Getdammage of group
« on: 15 Nov 2003, 14:33:14 »
Ok, I have a group called convoy, made like this,

convoy = group this

written in the leader's init line.
I want to have a trigger execute a radio message once all the units in the convoy are destroyed. However when I put,

condition     getdammage convoy >= 0.1
activation    joebloggs sidechat "blah, blah, blah."

I get an error type group, expected object.
It works if I use the getdammage on one of the units within the group, but I want it for all the group.

Can anyone help me around this problem?
« Last Edit: 15 Nov 2003, 14:35:05 by The-Architect »
James Andrew Wilkinson 1977 - 2005 R.I.P.
"If it ain't the friggin' incoming it's the friggin' outgoing. Only difference is who gets the friggin' grease, and that ain't no friggin' difference at all."

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Getdammage of group
« Reply #1 on: 15 Nov 2003, 15:46:09 »
First of all, in general commands that work for a unit don't work for a group and vice versa.    There are a few exceptions, which are mentioned in the command ref under the commands concerned.     "type group expected object" is one of commonest error messages, I get it all the time.  ;D     Groups and units are profoundly different, in fact it's one of the core concepts in OFP.

Secondly, there are a variety of ways to fire a trigger when a group is destroyed .... I can't remember which is best but try something like

count units convoy <= 0

check the syntax
Plenty of reviewed ArmA missions for you to play