OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Friznit on 07 May 2003, 17:47:14

Title: ARRRRGH! 'JOIN' won't work...?!!!
Post by: Friznit on 07 May 2003, 17:47:14
OK.  Frustration.  I'm kinda new ti this.  Bear with me please.

Why won't this work?

1. Pilot group leader's init field:  pilgrp = units group this;

2. Player group ldr's init: mygrp = units group this;

Radio Trigger set to Radio Alpha.  On Act:

"_x join mygrp" foreach pilgrp

3.  Actually, anything with the JOIN comd in it ain't working.  Can't even get a unit to join another at a WP (this join mychap)??????????

HELP appreciated.

cheers

So far, no probs.
Title: Re:ARRRRGH! 'JOIN' won't work...?!!!
Post by: SimonRussi on 07 May 2003, 17:54:10

I assume you tried creating a JOIN and one JOIN AND LEAD WPs for the 2 groups and sinchronize them, didn't you? This always works...

Anyway, i used this command

pilgroup = group this

without the "units" and

"_x join mygrp" foreach unit pilgrp

and everything worked

hope this help. :P

simon
Title: Re:ARRRRGH! 'JOIN' won't work...?!!!
Post by: jojojoni on 07 May 2003, 18:02:07
Instead of:

"_x join mygrp" foreach...

write this:

"[_x] join mygrp" foreach...
Title: Re:ARRRRGH! 'JOIN' won't work...?!!!
Post by: SimonRussi on 07 May 2003, 18:05:05

"[_x] join mygrp" foreach...

well... of course  ;D

unitArray join group

forget my sintax :)

simon
Title: Re:ARRRRGH! 'JOIN' won't work...?!!!
Post by: Friznit on 07 May 2003, 18:07:05
Thanks guys.  Appeared to be a syntax prob.

Trying to do this without WPs for more versatility - ie. a variety of simple reinforcement demands by radio.

Guess I could just use the SP/MP Spt Pack, but how would you learn anything that way  ::)