Jump to content

Spawning loaded wagons (crates, barrels, sacks etc.)


Commander2706
 Share

Recommended Posts

Spawning carts and wagons with the following code will give me an empty wagon:
 

_wagon = new Vehicle(_wagonName, _location, _heading);

 

As there are a lot of wagons in game, which have different sets of barrels, crates, sacks and lootable boxes on them, I was wondering if there is a way to randomize what cargo they're hauling.

Does anyone have some input on this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...