Jump to content
Sign in to follow this  
krumpo

Loading objects into vehicles

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×