Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Making a unit a medic?

  1. #1

    Making a unit a medic?

    Is it possible at all to make a unit a medic when he isn't of that class? (no I'm not using ACE). I ask because some of my favourite modded units don't have a medic class in them which is unfortunate. Is there a way to either add one somehow or use a script or something?

  2. #2
    Second Lieutenant JdB's Avatar
    Join Date
    Aug 10 2002
    Location
    Kingdom of the Netherlands
    Posts
    4,149
    You need to add the ability through the config of the addon (you can edit BIS' files as well, but it will get you into problems when playing online). Don't ask me how though, I'm not a coder
    Creating ArmA:CWA addons at a snail's pace and newsposter @ OFPr.info.

  3. #3
    It is
    Code:
    attendant = true;
    in the config file.

    WW1 ArmA:CWA Mod || Romans and Barbarians ArmA:CWA Mod
    Goodbye W0lle, we'll miss you

  4. #4
    Er ok, so that means I have to unpack the pbo of the addon I want to add a medic to and edit the cfg file and then repack it into a pbo again? Does that sound right? Thing is, am I adding a line to the config (in which case where on earth do you put it?) or just changing a line?
    Last edited by All-a-Mort; Sep 5 2009 at 09:02.

  5. #5
    Quote Originally Posted by All-a-Mort View Post
    Er ok, so that means I have to unpack the pbo of the addon I want to add a medic to and edit the cfg file and then repack it into a pbo again? Does that sound right?
    Yes

  6. #6
    Ok, so presuming I am meant to be editing the config.bin file in the pbo of a unit addon, where do I add the attendant line? At the moment I can't even properly read the file (is there a better program to read it in than notepad?), it appears rather garbled with little evidence of any systematic arrangement.

  7. #7
    Quote Originally Posted by All-a-Mort View Post
    Ok, so presuming I am meant to be editing the config.bin file in the pbo of a unit addon, where do I add the attendant line? At the moment I can't even properly read the file (is there a better program to read it in than notepad?), it appears rather garbled with little evidence of any systematic arrangement.
    well, if you mean that the file is binarized (.bin extension), you need some tools to convert it to .cpp format which you can read and modify with a text editor :

    config files tools

    If you mean you don't understand the config file, just find the name of the soldier you're looking for (under : displayname ="blablabla") with a text search, then just add the line i wrote in my previous post under this line for example.

  8. #8
    Quote Originally Posted by ProfTournesol View Post
    well, if you mean that the file is binarized (.bin extension), you need some tools to convert it to .cpp format which you can read and modify with a text editor :

    config files tools

    If you mean you don't understand the config file, just find the name of the soldier you're looking for (under : displayname ="blablabla") with a text search, then just add the line i wrote in my previous post under this line for example.
    Hmmm, been ages since I started this thread and then gave up. But today I was trying to make one of the units in the groovy Multicam SF addon a medic as well (for a PJ) but can't get it to work:

    I tried, by using PboView to extract the files, armaunbin to convert the config.bin into a .cpp and after adding the attendant = "true" line to one of the units re-binned it and repacked it using the same programs, but got a series of errors with weapons for the whole multicamsf bunch being missing after a \weapons\ and \tex\ error (seriously that's what it said.). Is there something obvious I did wrong?

  9. #9
    Maybe share your config with us, makes things much easier.

    And this should be in Addon config & scripting.

  10. #10
    Quote Originally Posted by W0lle View Post
    Maybe share your config with us, makes things much easier.

    And this should be in Addon config & scripting.
    Sorry, my bad I posted this originally in the wrong place...just hadn't realised til now and thought it best not to create another thread.
    Not much point adding a config to this, as all i did was add the line that ProfTournesol suggested. I probably need to try doing the same for a few different ones to see if the error I get is solely for advarks(sp?) stuff.

Page 1 of 2 12 LastLast

Posting Permissions

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