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

From Bohemia Interactive Community
< User:Reyhard‎ | Sandbox‎ | Character Gear Creation‎ | Headgear
Revision as of 15:12, 4 August 2023 by Reyhard (talk | contribs) (Created page with "{{TOC|side}}{{Feature|informative|'''Previous part''' - Asset Preparation}}{{Messagebox|'''Overview''' This chapter covers...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Inherit from Helmet Base or duplicate one of existing helmets

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

  • 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
    • Cont

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