Reyhard/Sandbox/Character Gear Creation/Headgear/Prefab Configuration – User

From Bohemia Interactive Community
Jump to navigation Jump to search
Previous part - Asset Preparation
💬
Overview

This chapter covers following topics:

  • Helmet prefab creation & configuration
  • Adding headgear to arsenal
  • Testing & diagnosing issues with helmets

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.

In this article, Enfusion links are used. With those links it is possible to open specific resource just by simply clicking on that link. Enfusion links has to be manually activated in Workbench options (Workbench -> Options -> Workbench -> Register "enfusion://" protocol) before it can be used]

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
Tip: You can find details how to create variants of headgear with different material on following page.

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