Welcome, Guest Thursday 17th April 2014, 20:16:01
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: groups  (Read 161 times)
0 Members and 1 Guest are viewing this topic.
iamelhombre
*
Offline Offline


« on: 02 Oct 2011, 00:58:10 »

hey i am kind of new to this, but could someone explain the "group" script command ive looked every where and cant really get a good explanation.
Logged
Inlesco
*
Offline Offline


« Reply #1 on: 02 Oct 2011, 14:26:40 »

As far as I know, "Groups" F2 is useful to:

  • group units/groups together
  • divide groups into individual units
  • make a trigger dependant on any vehicle appearance in selectec area (it's fairly simple to use - group selected trigger with a unit, then edit trigger and select any option you want in "Activation" field inside the selection window
  • quickly create quite accurate infantry/armor platoons
  • create a marker "Empty", group it with selected unit and make possibility of appearance in any point of 50% (if you do the same with 2 markers instead of 1, it would be equal to 33%. This feature really helps to make mission a bit more dynamic

That's all I remember.
Logged
h-
Forum
Administrator
*****
Offline Offline


Formerly HateR_Kint


WWW
« Reply #2 on: 02 Oct 2011, 19:18:35 »

I think he meant the group scripting command and not the gorups "menu" in the editor..

Anyway, the command returns the group the given unit belongs to so you can for example store it into a variable.

Simple sample code:
Code:
_var = group player;
hint format ["%1",_var];
Running that code (in a script) will show a hint message on the screen showing the group the player belongs to.
Logged

Project MCAR   ---   FWW2 - Finland At War 1939-1945
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.
Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: