OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: NightJay0044 on 14 Nov 2005, 20:13:28

Title: Basic question (Joining)
Post by: NightJay0044 on 14 Nov 2005, 20:13:28
HI, my question today has to do with the initialization field of a soldier.

1) How do you get a soldier to join you (player) typing a specific code in his initialization field?

Thank You.
Title: Re:Basic question (Joining)
Post by: Planck on 14 Nov 2005, 20:19:08
Try:

[unitname] join player

There is a lot to be said for reading the  command reference (http://www.ofpec.com/editors/comref.php) for queries such as this.


Planck
Title: Re:Basic question (Joining)
Post by: NightJay0044 on 14 Nov 2005, 20:23:20
Another question:

1) Why do you have to put "[]" that code around the unitname in the init field?

Such as:

[w1] join player

Thanks
Title: Re:Basic question (Joining)
Post by: Planck on 14 Nov 2005, 20:25:43
[] denotes an array.

So, you could say:

[unitname1, unitname2, unitname3....etc] join player


Planck