OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Oddball on 01 Jan 2003, 10:33:09

Title: Can I do this?
Post by: Oddball on 01 Jan 2003, 10:33:09
I want to create a script that splits up a squad on radio command, and enabled another radio to bring them back together under one command. This will be done under co-op. So say I have a 12 man squad, I want to split 2,4,6,8,10, and 12 up and give command of them to number 2. Leaving the odd numbers for me to command. I also want to be able to bring them back together under singular command. Is this possible? Thank you in advance!
Title: Re:Can I do this?
Post by: MorMel on 02 Jan 2003, 00:30:33
I'm sure if this is the answer you want:

;Leave unit 'A1' and 'A2' (their previously set variable names) without group
[A1,A2] join GrpNull

;Have unit A1 commanding A2
[A2] join group A1

;Or have units B1, B2 and B3 in group 'DEATH'
[B1,B2,B3] join DEATH

That's it!

Now, i'm haven't tested this yet but I think that you can choose a group's unit through the following:

'SIDE RADIOID GROUPCOLOR:<unitnumber>'

example-
[West Alpha:1] join group player
[East Zulu Black:4] join WhatEverYouCalledThisGroup

HOPE IT WORKS! ;D