Hey guys,
A quick question on "createUnit".
I know how to use "createUnit", and setpos them where I want, but I can't figure out how to have an "init line" attached to them. For instance, using a ready made script thats called from a units "init line", or allows you to name the unit so it cane be manipulated by other scripts.
The Command Ref shows 2 createUnit commands.
The first one, the group is created as an element in the array and the "init line" entry is also an element in that array.
_unit = group player createUnit ["SoldierWB", position player, [], 0, "FORM"]
Is the second Command for OPF only? If so is there a generic work around in ArmA?
The second one, you have to createGroup first, and it doesn't have an array element for "init line" entry.
"soldierWB" createUnit [getMarkerPos "marker_1", groupAlpha,"loon1 = this ; this addweapon {binocular}", 0.6, "corporal"]
I'm just a little confused by the whole thing.
Cheers