Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
Help
Search
Login
Register
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
groups
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: groups (Read 1512 times)
0 Members and 1 Guest are viewing this topic.
iamelhombre
Members
groups
«
on:
02 Oct 2011, 01: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
Members
Re: groups
«
Reply #1 on:
02 Oct 2011, 15: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-
OFPEC Site
Administrator
Formerly HateR_Kint
Re: groups
«
Reply #2 on:
02 Oct 2011, 20: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:
[Select]
_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
---
Northern Fronts
---
Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
OFP - Editing/Scripting General
(Moderators:
h-
,
savedbygrace
,
Gruntage
) »
groups
Top of page