Results 1 to 4 of 4

Thread: Client side ranked ammo-box script

  1. #1

    Client side ranked ammo-box script

    Just a quick modification of a script I use in my missions. Originally written by Demonized for Arma 2, modified by me for Arma 3.

    Here's how it works:

    In certain multi-player missions, there comes a time where you want to either: restrict which slots have access to which weapons, OR, you have so much crap in an ammobox, and so many players on the server - that it takes forever just to get a magazine out.
    This script does both.

    Weapon restriction is based on what you name the units.
    eg: You could name some rifleman1, rifleman2, etc. and then name some others: grenadier1, grenadier2, and so on.
    The rifleman would not be able to see what the grenadiers see, and vice versa.

    The script creates an ammo box on a marker, in doing so it is ONLY run on the client. In addition, if you have units that are NOT named in the script, they simply won't see the ammo box.

    It's not much, but it's a start. (it's just weapons and ammo at this stage, no items or clothing).
    Again, I must credit Demonized, as it was his script that formed the base of mine.

    Download Link:

    http://dl.dropbox.com/u/98111234/local_box.sqf

  2. #2

  3. #3
    Thanks Foxhound.
    Main: i5 3570K | XSPC RASA | RX240 + RX120 | ASRock z77 Extreme4 | 2x 3gb HIS 67950 | 16gb 1600mhz XMS3 | 1TB WD Green | Sandisk 120gb SSD | 850w Silverstone Strider | Fractal Design Arc Mid.
    Server: i5 2500K | ASrock Extreme4 | 650w Silverstone Strider | 8gb 1600mhz XMS3 | 7TB WD green's | 120gb Sandisk SSD OS drive | NZXT Tempest | Zalman bay converters | Win7+pimped MCE.

  4. #4
    im just wondering if i could change this to would i have to change if (_this != player) to if (_this != MG) and name the unit MG1, MG2 and so on for each unit same for sniper too?

    Code:
    if (_this != player) exitWith {};  // exit all other clients.
    _weapons = []; _magazines = [];
     
    // load available to standard players only.
    if (_this in [MG1,MG2,MG3,MG4]) then {
    Code:
    if (_this != player) exitWith {};  // exit all other clients.
    _weapons = []; _magazines = [];
     
    // load available to standard players only.
    if (_this in [sniper1,sniper2,sniper3,sniper4]) then {
    Last edited by hellstorm77; Apr 11 2013 at 23:50.

Similar Threads

  1. [Working] MP ammo box script
    By Riouken in forum ARMA 3 - MISSION EDITING & SCRIPTING
    Replies: 21
    Last Post: Mar 21 2014, 14:28
  2. Call server-side script through client script
    By gdscei in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: Jan 13 2013, 19:57
  3. Need help with ammo box script.
    By Aced170 in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: Jul 8 2012, 02:48
  4. Ammo Box script not working
    By bigshotking in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 4
    Last Post: Sep 2 2011, 05:04
  5. Ammo box drop script
    By S4Mz in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 5
    Last Post: Jun 19 2011, 11:48

Posting Permissions

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