Advertisement

Author Topic: RUG_AssignEQ - Assigning config-based equipment to unit  (Read 934 times)

0 Members and 1 Guest are viewing this topic.

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Hello all,

This is an extremely simple script that I, nonetheless, thought the general public might have some use for. What it does is simply replace the weapons and equipment of a unit with that of another (default, config-based) unit's. So for instance if you want your CDF Militiaman to instead be sporting a full machinegunner's default gear, you could simply use this script instead of making a custom re-gearing script for each possible combination.

Use:

[unitName, "unit_class"] execvm "RUG_AssignEQ.sqf";

Unit classes can be found here: CfgVehicles.

As mentioned, a very simple script, but perhaps useful for some of you :) Attached below both script in itself (with comments) and a "demo mission".

NB: This script obviously cannot turn a militia soldier into a medic or engineer or change anything in their configs - it just replaces equipment.

Enjoy!

Wolfrug out.

 
"When 900 years YOU reach, look as good you will not!"

Offline kju

  • Members
  • *
    • PvPScene - The ArmA II multiplayer community
Re: RUG_AssignEQ - Assigning config-based equipment to unit
« Reply #1 on: 12 Nov 2010, 09:45:26 »
nice idea. good job  :good:

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re: RUG_AssignEQ - Assigning config-based equipment to unit
« Reply #2 on: 12 Nov 2010, 16:36:28 »
Thanks :)

Feel free to upload this one to the ED if you want, as far as I can tell it should work with no problem.  :cool2: Oh, and it should work for ArmA as well, if you remove the removeallItems command!

Wolfrug out.
"When 900 years YOU reach, look as good you will not!"