Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
bear-wiki-testing [2016/01/12 10:03]
bear
bear-wiki-testing [2016/03/03 06:24]
bear
Line 1: Line 1:
 +If you have questions about anything on this page, or if something is not working, contact me (Bear).
 +
 +==== Supply Crates ====
 +Supply crates are in the framework by default; they are placed next to every squad leader. The crate object type (and thus appearance) does not matter, and can be picked freely. The existing crates can also be sling-loaded by helicopter pilots.
 +
 +The crate contents are controlled by the assign gear scripts. Each crate will have a line of code in it's init box, more or less identical to this: <code c++>​["​crate_med",​this,"​blu_f"​] call f_fnc_assignGear</​code> ​
 +The first parameter (//"​crate_med"//​) passes the desired gear configuration to the script, the second (//this//) references the crate object for the script and the third ("​blu_f"​) tells the gear script which factions gear should be added to the box. In this case, the crate receives a //"​crate_med"//​ loadout from the //"​blu_f"//​ (NATO) faction.
 +
 +The actual contents to be added is adjusted in the gear script file of the respective faction, e.g. //​f_assignGear_nato.sqf//​ (CTRL+F crate_med).
 +
 +**Image 1: Example crate from the framework template**
 +
 +{{::​supplycrate-1.png?​nolink|}}
 +
 +
 +
 +**Image 2: The crate'​s init code**
 +
 +{{::​supplycrate-2.png?​nolink|}}
 +
 +
 +
 +**Image 3: Changing crate object type**
 +
 +{{::​supplycrate-3.png?​nolink|}}
 +
 +
 +----
 +
 ==== Removing Vehicle Magazines ==== ==== Removing Vehicle Magazines ====
  
  • bear-wiki-testing.txt
  • Last modified: 2016/03/03 06:24
  • by bear