Welcome to Tactical Gamer

+ Reply to Thread
Results 1 to 7 of 7
Discussion: ArmA - Development / ArmA - Mission Development - Vehicle Rearming Script - Hello Everyone, I have created a script which allows players to rearm, repair, and refuel
  1. #1

    GeneralCarver's Avatar

    Join Date
    Aug 2007
    Location
    Indiana, USA
    Age
    32
    Posts
    532

    Vehicle Rearming Script

    Hello Everyone,

    I have created a script which allows players to rearm, repair, and refuel the Default ArmA 2 vehicles.

    Each side has four service points. Vehicle Service, Rotary Wing Service, Fixed Wing service, and Watercraft service.

    In game, just drive your vehicle to the proper service point and use your action menu to start the script. To rearm vehicles be in the gunner seat. To repair and refuel vehicles be in the driver seat.

    This does have a limitation. Vehicles which have multiple gunner seats can only rearm their primary gunner seat. This is due to current limitations with the ArmA 2 scripting engine.

    Link below. Just download and follow the instructions I included in the Readme file.

    Enjoy, hope this helps you in mission development,

    http://www.armaholic.com/page.php?id=7158
    (my first script posted to armaholic <wipes tear away>)

  2.  
  3. #2

    Blackdog1's Avatar

    Join Date
    Apr 2008
    Location
    London
    Posts
    2,370

    Re: Vehicle Rearming Script

    Well done mate... nice work
    BlackDog1




    "What we do in life... echoes in eternity!"

  4.  
  5. #3

    Charles Darwin's Avatar

    Join Date
    Sep 2008
    Posts
    593

    Re: Vehicle Rearming Script

    ok question, I am modifying your script slightly so that i can rearm a UHy1 from the pilot seat

    i removed gunner from the appropriate places and added driver in its place

    i changed the magazine to

    vehicle player removemagazines "14Rnd_FFAR";
    vehicle player addmagazine "14Rnd_FFAR";

    it says rearming complete but the rockets are not added and i get 2 rearm actions in the action menu(if i do it again it adds a 3rd..and so forth)

    any ideas?



  6.  

     
  7. #4

    GeneralCarver's Avatar

    Join Date
    Aug 2007
    Location
    Indiana, USA
    Age
    32
    Posts
    532

    Re: Vehicle Rearming Script

    Nah. Its been weeks since i've released that. I'll have to take a look at it. I thought I had it setup already to rearm the FFARs on the UH1?

  8.  
  9. #5

    Charles Darwin's Avatar

    Join Date
    Sep 2008
    Posts
    593

    Re: Vehicle Rearming Script

    Quote Originally Posted by GeneralCarver View Post
    Nah. Its been weeks since i've released that. I'll have to take a look at it. I thought I had it setup already to rearm the FFARs on the UH1?
    nope in the rearm helo script it reloads only the miniguns



  10.  
  11. #6

    GeneralCarver's Avatar

    Join Date
    Aug 2007
    Location
    Indiana, USA
    Age
    32
    Posts
    532

    Re: Vehicle Rearming Script

    Bad News Charles.. now I remember why its this way. On vehicles where the Pilot controls the FFARs.. the UHEY, the HINDS etc. You can't use the "addmagazine" command to the vehicle or player to script in more ammo. It adds it to the gunner seat...where the FFARS are not controlled.

    Right now I don't think it can be done, unless there is another way to script this which I'm not aware of. That is why I added those vehicle rearming points in the script to get around this problem.

    So for now your out of luck. : (

  12.  

     
  13. #7

    Charles Darwin's Avatar

    Join Date
    Sep 2008
    Posts
    593

    Re: Vehicle Rearming Script

    that sucks :P Ah well I just put a vehichle service point on the deck of the carrier



  14.  

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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


  
 

Back to top