Results 1 to 3 of 3

Thread: Loading objects into vehicles

  1. #1

    Loading objects into vehicles

    Hi guys,

    I am fairly new to scripting in ArmA2, this is going to be one of my first real scripts. I am trying to figure out how to load an item, such as a barrel into a vehicle, kind of like MSO does it. In this specific instance I would like to be able to load a barrel into a truck, let the player transport it to a different area and be able to unload it again. I saw some posts that referenced addAction, but most of them seemed to delete the object as soon as the action is performed and not really track it anymore. Also, this mission I am building will require ACE, is there an ACE-specific way to doing this, ala ace interaction?

    Thank you.

  2. #2
    Pretty much all of the cargo scripts just delete the item, then assign it via a variable to the vehicle.Then later on when you "unload" it it will recreate the object. But to be honest this is not the easiest scripting tasks to start on. If you do end up doing it on your own then you need to break this up into much more manageable sections. Then work on the problems associated with those small secitons.

    But since your using ACE you should probaly just use this:

    http://wiki.ace-mod.net/wagn/Cargo

    or this:

    http://www.armaholic.com/page.php?id=9285

  3. #3
    Private First Class
    Join Date
    Aug 21 2012
    Posts
    25
    Author of the Thread
    Quote Originally Posted by Riouken View Post
    Pretty much all of the cargo scripts just delete the item, then assign it via a variable to the vehicle.Then later on when you "unload" it it will recreate the object. But to be honest this is not the easiest scripting tasks to start on. If you do end up doing it on your own then you need to break this up into much more manageable sections. Then work on the problems associated with those small secitons.

    But since your using ACE you should probaly just use this:

    http://wiki.ace-mod.net/wagn/Cargo

    or this:

    http://www.armaholic.com/page.php?id=9285
    So if I understand this correctly, would I basically have to extend the object I want to load (if it is not loadable already) and add the ACE_canBeLoad, ACE_canBeCargo, etc... properties to the extended object? In this case a barrel filled with sand.

    Thank you.

Similar Threads

  1. CAA1 Objects not loading
    By DeclaredEvol in forum ARMA 2 & OA - ADDONS & MODS: DISCUSSION
    Replies: 3
    Last Post: Aug 6 2010, 17:17
  2. Deleting unwanted objects/vehicles/etc
    By Opium in forum ARMA 2 & OA - MULTIPLAYER
    Replies: 5
    Last Post: Jul 26 2010, 20:55
  3. error loading missions, lack of extas:objects?
    By pepel in forum MULTIPLAYER
    Replies: 3
    Last Post: Oct 15 2004, 09:02
  4. Pre v2 wrp files loading objects and textures
    By Hit_Sqd_Maximus in forum OFP : MAP EDITING (VISITOR)
    Replies: 10
    Last Post: Sep 1 2003, 12:15
  5. Making vehicles and objects to explode
    By gecilada in forum ADDONS & MODS: COMPLETE
    Replies: 0
    Last Post: Oct 9 2002, 08:49

Posting Permissions

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