Results 1 to 9 of 9

Thread: Giving names to created groups

  1. #1

    Giving names to created groups

    Ok, searched big time but couldn't find any help on this one. I'd like to know how to give identity to a created group leader.

    Code:
    WestGrp01 = CreateGroup West;
    _leader = WestGrp01 createUnit ["GUE_Soldier_AR", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _unit = WestGrp01 createUnit ["GUE_Soldier_GL", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _unit = WestGrp01 createUnit ["GUE_Soldier_MG", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _unit = WestGrp01 createUnit ["GUE_Soldier_Medic", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _unit = WestGrp01 createUnit ["GUE_Soldier_GL", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _leader = leader WestGrp01;
    _newGrp = (group _leader);
    player hcSetGroup [_newgrp];
    So I would think
    Code:
    _leader setidentity "john_doe"
    would work but it doesn't. I am able to make "_leader sidechat ..." no problem but it always comes up 1-1-k-1:, and i'd like to be able to give him a name. John_doe is set in the Desciption and it works fine for units who start off in the mission but not for my created homies
    ~The bearly literate pugilist~

    Force AI to use their proper weapon! http://feedback.arma3.com/view.php?id=8829

    Stop discrimination! Fight for bot rights for them to thrive indoors! http://feedback.arma3.com/view.php?id=8671 -Please revote this! Previous one was mistakenly directed to DevHeaven only!

    Add Distance to Target/Gear Menus: http://feedback.arma3.com/view.php?id=8666

    Spoiler:

  2. #2

  3. #3
    Second Lieutenant froggyluv's Avatar
    Join Date
    Jun 19 2006
    Location
    Coloru-doo
    Posts
    4,570
    Author of the Thread
    Yep, actually tried that first but for one thing it cancelled out their role as subordinate in the high Command stuff and also it just didn't work. It seems that when naming units outside of the editor which of course is the only way with a created group, that they must be named in the beginning of the Init file or it won't show up. Perhaps, the created group is coming in too late for the name game.

  4. #4
    Did you try to put the whole setIdentity thing in your created unit's inits (with setVehicleInit followed by processInitcommands)?
    Maybe worth a try
    Whisper / Kalbuth / MrK
    ex-OFrP member.
    OFCRA lurker : OFCRA www
    Planetside 2 / Tribes Ascend, member of Formido Clan

  5. #5
    Second Lieutenant froggyluv's Avatar
    Join Date
    Jun 19 2006
    Location
    Coloru-doo
    Posts
    4,570
    Author of the Thread
    Not sure quite what you mean. If you mean the above script as the Init, then yes but no go.I've also tried the Init.sqf whick works well for normal units but not these guys. I have _leader sidechat "blah blah blah" in the above and as soon as they spawn and it works fine but the, _leader setidentity "john_doe" , has no effect.

    I looked at the biki for those commands you mentioned but I've never used them and don't really know them.

  6. #6
    Using setVehicleInit would look like that :
    Code:
    WestGrp01 = CreateGroup West;
    _leader = WestGrp01 createUnit ["GUE_Soldier_AR", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _leader setVehicleInit "this setIdentity 'john_doe'";
    processInitcommands;
    _unit = WestGrp01 createUnit ["GUE_Soldier_GL", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _unit = WestGrp01 createUnit ["GUE_Soldier_MG", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _unit = WestGrp01 createUnit ["GUE_Soldier_Medic", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _unit = WestGrp01 createUnit ["GUE_Soldier_GL", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
    _leader = leader WestGrp01;
    _newGrp = (group _leader);
    player hcSetGroup [_newgrp];

  7. #7
    Second Lieutenant froggyluv's Avatar
    Join Date
    Jun 19 2006
    Location
    Coloru-doo
    Posts
    4,570
    Author of the Thread
    Thanks but still no go. John_Doe is legitimized in my description.ext but that particular group still chats with the tag 1-2-I or something of the sort.

  8. #8
    i want to know an easy way of changing the name of the person talking too. Even if you get someone to speak its always a number like youve described A-1-1 "bla bla bla " not the name given in the editor.

  9. #9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •