Arma 3 Editor - How to add a inventory to any object (get a working ammo box)

Поділитися
Вставка
  • Опубліковано 2 січ 2025

КОМЕНТАРІ • 23

  • @jay2bnvd
    @jay2bnvd 7 років тому +1

    Hi Desperado.
    The way you made this tutorial is great. I could not get this to work, and then I realized that I was putting the code in the wrong box. LOL
    It works perfectly! Thanks. :)

    • @Desperado070
      @Desperado070  7 років тому +1

      If you download the demo mission and have a look in their.
      If you skip 1 step the code won't work, that is the thing.

    • @Desperado070
      @Desperado070  7 років тому

      Haha, sh*t happens :)
      Glad it works now for you to.

  • @chewy8454
    @chewy8454 7 років тому +3

    Fantastic workaround man! I changed it a tiny bit to make it so only a certain player can open it aka p1. this addaction ["Inventory",
    {_Object setpos position (_this select 1);
    (_this select 1) action ["Gear", _Object]},[], 6, true, true, "", "(_this distance _target)

  • @Nacjo_Farmer
    @Nacjo_Farmer 4 роки тому +1

    Thanks for it! Very useful! :)

  • @erbderbs
    @erbderbs 5 років тому +1

    Great video, thank you!

  • @yoboytatortots3314
    @yoboytatortots3314 6 років тому +1

    I have a question that is a bit off topic from this but has something to do with the command used in the video. Using the "This" command type, is it possible to give a specific weapon infinite ammunition or higher capacity magazines? Thank you in advance.

    • @Desperado070
      @Desperado070  6 років тому

      *this addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]*
      Put that in the init of the unit you wish to give unlimited ammo.
      Actually what it does is everytime the AI or player fires it fills the clip to max again.
      *source: **forums.bohemia.net/forums/topic/77355-give-ai-unlimited-ammo/*
      Now for extended mags, it ain't easy but it is possible...
      *forums.bohemia.net/forums/topic/198360-need-some-help-on-how-to-modify-weapon-damagemagazines/*
      Never actually searched good, but maybe you can find a mod in the workshop with extended mags?!?

  • @azora8843
    @azora8843 3 роки тому

    Can you turn the ammo box into vehicle ammo? Where a vehicle can rearmed with it?

    • @Desperado070
      @Desperado070  3 роки тому

      There are two ways of how to do this...
      1) We got the HEMTT Ammo ingame, if you place those vehicles, drive up to them ingame and look at them u get the option to rearm.
      2) We could make a (mini) script. trigger 1: activation any player present, onAct: hint "Vehicle service started... Please put your engine off...";vehicle (thislist select 0) engineOn false;
      Trigger 2: same conditions, but now we use a timeout, and put that on 10secs,
      onAct: vehicle (thislist select 0) setVehicleAmmo 1; vehicle (thislist select 0) setFuel 1; vehicle (thislist select 0) setDamage 0;hint "Vehicle service complete."

  • @micha973
    @micha973 4 роки тому

    DO you know how to put chest into vehicle from editor ?

    • @Desperado070
      @Desperado070  4 роки тому

      community.bistudio.com/wiki/addWeaponCargo ?

  • @jay2bnvd
    @jay2bnvd 7 років тому

    Will this work on multiplayer server?

  • @nekotracker2987
    @nekotracker2987 Рік тому

    this addaction ["Inventory", {_Object setpos position (_this select 1);
    (_this select 1) action ["Gear", _Object]},[], 6, true, true, "", "(_this distance _target)