Results 1 to 8 of 8

Thread: ammo crates and teammates

  1. #1

    ammo crates and teammates

    I made a sample map with one player and a ammo crate. I took every thing out of the crate by doing this.

    clearWeaponCargo this;
    clearMagazineCargo this;

    Then I added a magazine and some ammo for a Javelin like this.

    this addMagazineCargo ["Javelin",5];
    this addWeaponCargo ["Javelin",1];

    Then I run the mission. When I get close to the ammo crate. I should be able to get the weapon. and well That doesn't work. What am I missing.

    Team Mates.
    It's there a way to give orders to your team mates with out the player having to have to do it.

  2. #2
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    try another box, maybe its no room.
    recheck your weapon classnames.
    My scripts:
    Spoiler:

    what to do when posting any kind of code dammit!!

    Any new mission editor or scripter in Arma2 should have read Mr Murrays Editing Guide Deluxe at least once, it still applies for A2 even though it was made for Armed Assault.

  3. #3
    Hi,

    your ammocrate should work so far.
    Do you get the "gear" option in your actionmenu when testing?

    When testing in editor you sometimes have to wait a few seconds until your soldier "recogises" the crate and gets the gear-action.

    regarding teammates:
    depends on what you want them to do.

    you can, e.g. stop a unit at mission start by putting
    Code:
    doStop this;
    in its initline

  4. #4
    Staff Sergeant iceman11a's Avatar
    Join Date
    Nov 26 2010
    Location
    Ohio USA
    Posts
    219
    Author of the Thread
    Thanks guys, I spent the last few hours trying to figure this crap out. Ok, from what I learned. The player is all ready armed with some weapons at the start of the game.

    Now in order to access the gear menu. You have to be near a ammo crate in order to change weapons or reload. Am I right or close. LOL, I new at this so bear with me.
    or have an addaction option added to the menu for the player. This will let the user change weapons and rearm.

    Ok, so my question is. How can I arm the player only with what I want to arm them with. and then add crates threw out the mission that they can rearm and reload and change weapons and all that crap.

    The other thing is that I have to look right down at the crate before the gear menu pop's up. That sucks.

    ---------- Post added at 06:35 PM ---------- Previous post was at 06:01 PM ----------

    Update.

    I fount out how to add weapons and magazines to the player. When I tried some thing like this

    in the players int;
    removeAllWeapons this; this addMagazine "30Rnd_556x45_StanagSD"; this addWeapon "M4A1SD";

    I got an error of no entry 'bin\config.bin/cfgweapons.m4a1sd'.

    any one have an idea on what to do. I look for the cfgweapons in the guide F2k sent me and there's nothing about it in the guide. So ? now

  5. #5
    Quote Originally Posted by iceman11a View Post
    add crates threw out the mission
    Lolwut? I had to read that out loud to make sense out of it. Being american you can't blame foreign language.

    Quote Originally Posted by iceman11a View Post
    The other thing is that I have to look right down at the crate before the gear menu pop's up. That sucks.
    For real? First time I've seen a complaint about that...

    Quote Originally Posted by iceman11a View Post
    I got an error of no entry 'bin\config.bin/cfgweapons.m4a1sd'.

    any one have an idea on what to do. I look for the cfgweapons in the guide F2k sent me and there's nothing about it in the guide. So ? now
    Check for the classnames in one of the sticky threads?
    Regards
    Carl Gustaffa - left this game due becoming Steam Exclusive

  6. #6
    Staff Sergeant iceman11a's Avatar
    Join Date
    Nov 26 2010
    Location
    Ohio USA
    Posts
    219
    Author of the Thread
    3) I did and I didn't find any thing related to that. How ever I did find out that it's a class that build in. So I figured it out that it was telling me the class is not available. That weapon may not be in Arma 2 OA.

  7. #7
    Warrant Officer Demonized's Avatar
    Join Date
    Nov 16 2010
    Location
    Back from afk 2013
    Posts
    2,614
    easy, simple and readable lists of valid classnames, for you id recomend the first one, it got pictures.
    http://www.armatechsquad.com/ArmA2Class/
    http://forums.bistudio.com/showthread.php?t=73241

  8. #8
    Staff Sergeant iceman11a's Avatar
    Join Date
    Nov 26 2010
    Location
    Ohio USA
    Posts
    219
    Author of the Thread
    Thank you. That did provide a lot of info.

Posting Permissions

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