Page 1 of 4 1234 LastLast
Results 1 to 10 of 35

Thread: Universal Crate Filler

  1. #1

    Lightbulb Universal Crate Filler

    Universal Crate Filler v2.01
    by Tophe of Östgöta Ops [OOPS]


    >>ARMAHOLIC DOWNLOAD<<

    This script will fill crates or vehicles with weapons, ammo and equipment.
    It is universal so you can set it to fill the crate with an optional amount of BLUFOR or OPPFOR weapons, magazines and equipment.
    Also you can choose to use weapons from Arma2, Arrowhead, BAF, PMC or all.

    To run with default settings, just put this in the units init line:
    nul = [this] execVM "crateFiller.sqf"


    OPTIONS

    There are some optional settings. The format for these are:
    nul = [this, "side", "game", refill, amount weapons, amount magazines, amount equipment] execVM "crateFiller.sqf"
    If you only put [this] the default settings will be used, they look like this:
    nul = [this,"west","all",false,30,75,30] execVM "crateFiller.sqf"


    Side:
    Set from which side you want to add equipment.
    You must put this in quotations. Default is West.
    • "west"
    • "east"
    • "all"

    Example: nul = [this,"east"] execVM "crateFiller.sqf"


    Game:
    Set from which game configurations you want to add weapons.
    • "all" - Both Arma 2 and Arrowhead
    • "arma" - Only Arma 2 equipment
    • "oa" - Only Arrowhead equipment (including baf & pmc)
    • "baf" - Only BAF equipment
    • "pmc" - Only PMC equipment
    • "user" - Only user defined arrays (*more info further down)

    Example: nul = [this,"east","AO"] execVM "crateFiller.sqf"


    Refill:
    If you want to it to refill every 5 minutes set this to TRUE, if
    you want it to fill up only once set this to FALSE.
    • TRUE - Refill every 5 minutes
    • FALSE - Fill up once.

    Example: nul = [this,"east","AO",FALSE] execVM "crateFiller.sqf"


    Amount of Weapons, Magazines and Equipment:
    Set the the amount in that order.
    This example will add 10 of each weapon, 50 magazines and 5 of each equipment (binocular, NV's etc.)
    Example: nul = [this,"east","AO",FALSE,10,50,5] execVM "crateFiller.sqf"

    Just remember that some vehicles and containers have limits to what they can hold.

    *USER DEFINED ARRAYS:
    In the script there are four empty arrays to use for user defined weapon loadouts:
    Code:
    _user_weapons_west = [];
    _user_magazines_west = [];
    _user_weapons_east = [];
    _user_magazines_east = [];
    These allows the mission maker to add custom loadouts.
    The user defined arrays are activated when the option game is set to user.




    FUTURE PLANS
    ================
    • Backpacks
    • ACE support


    VERSION HISTORY
    ================
    v2.01 - 2011-02-07
    • Completely rewritten
    • Added BAF and PMC
    • Added support for User Defined Loadouts
    • MP bug


    v1.0 - 2010-07-20
    • Initial release

  2. #2
    this is great!! do you know if ya could add a function that would allow it to add weapons from ACE2 as well?

  3. #3
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    930
    Author of the Thread
    Hey jynx.. I'll have a look at it next week. It should be no problem.

  4. #4
    This is fantastic, thanks Tophe!!!

  5. #5

  6. #6
    I have this as the init for a C130J (named C130) in a Chernarus mission.

    Code:
    nul = [this,"west","arma",false,30,75,30] execVM "scripts\crateFiller.sqf"
    I am onboard as a passenger, I can only see 20 Satchels and 3 Binoculars.

    Player init
    Code:
    Paras = Group this; {_x moveincargo C130} ForEach units group this;
    Any ideas?

    UPDATE: It appears to be a vehicle limit. 20 Satchels fills the vehilce limit.

    I tried it with
    [code]
    Code:
    nul = [this,"west","arma",false,1,1,1] execVM "scripts\crateFiller.sqf"
    and C130 had more items.

    I'd have to edit your script to reduce qty's of selected items, or set a max for each to allow for more items.
    Last edited by Beerkan; Jul 21 2010 at 13:37.

  7. #7
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    930
    Author of the Thread
    Quote Originally Posted by Beerkan View Post
    I have this as the init for a C130J (named C130) in a Chernarus mission.

    Code:
    nul = [this,"west","arma",false,30,75,30] execVM "scripts\crateFiller.sqf"
    I am onboard as a passenger, I can only see 20 Satchels and 3 Binoculars.

    Player init
    Code:
    Paras = Group this; {_x moveincargo C130} ForEach units group this;
    Any ideas?

    UPDATE: It appears to be a vehicle limit. 20 Satchels fills the vehilce limit.

    I tried it with
    [code]
    Code:
    nul = [this,"west","arma",false,1,1,1] execVM "scripts\crateFiller.sqf"
    and C130 had more items.

    I'd have to edit your script to reduce qty's of selected items, or set a max for each to allow for more items.
    Yeah vehicles have limited space. Just keep the numbers low and you'll be fine. If you want to add just some special items I suggest you do it manually. Much easier than customizing a big script.

  8. #8
    First Sergeant cobra4v320's Avatar
    Join Date
    Mar 10 2009
    Location
    Seattle Washington
    Posts
    841
    Awesome Tophe!

  9. #9
    First Sergeant Tophe's Avatar
    Join Date
    Jun 4 2004
    Location
    Örebro/Sweden
    Posts
    930
    Author of the Thread
    thx guys...
    I'll try and make it work with ace as well.
    I have not tried it with AO standalone yet, since I don't have it installed that way.
    It works fine with only Arma 2.

    Could someone have a look with the script runing only AO stuff in AO standalone and post a clean .RTP with any errors they get? It would be of great help.

  10. #10
    Excellent script, possible to add in BAF weapons?
    Pc Format Official Runner Up Award 2010

Page 1 of 4 1234 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
  •