Reyhard/Sandbox/Character Gear Creation/Headgear/Prefab Configuration – User
Prefab Setup
Creating Prefab
First step in this process will be inheriting Headgear_Base.et or duplicate one of existing helmets like Helmet_PASGT_01.et. When inheriting from Headgear_Base.et, few more steps will be required but those are listed later. Because of that, it might be faster & simpler to duplicate some prefab.
Tweaking BaseLoadoutClothComponent
Once you have new prefab for your helmet, open it in for example Prefab Edit Mode and start with tweaking things located in BaseLoadoutClothComponent
- Enable PhysicsOnWearEnabled & AnimateCollidersOnWear properties
- Assign item model to ItemModel in BaseLoadoutClothComponent & to property Object in MeshOjbect component
- Assign worn model to WornModel
- Change SoundInt parameter to 120
- This parameter is responsible for additional sounds that are being played certain type of headgear is worn. For instance if you wear harness, you can hear some extra metal rattle when moving through the landscape. See Character SoundInfo Signals Reference page for more info
If you inherited from Headgear_Base.et prefab, then you would also need to tweak following things
- Change AreaType parameter in BaseLoadoutClothComponent to LoadoutHeadCoverArea
- This will tell the game that this item should be assigned to head gear slot in inventory menu
- Tweaking drop item sound (SCR_SoundDataComponent) to Items_Drop_Helmet.acp
- Changes the sound which is being played when item is placed on the ground
- Tweaking position of default action context
Inventory Configuration
Configuring inventory properties
- Name
- Size
- Preview image
Adding to Arsenal
https://community.bistudio.com/wiki/Arma_Reforger:Weapon_Creation/Prefab_Configuration#Crate_Filling
Testing & Diags
Diag
Physics -> Show bodies
Physics -> Show layer -> Fire
Physics -> Show simulation state