EHCv2 Docs
  • Welcome!
  • Our Vision and Values
  • Core
    • Design
      • Blueprints
      • Curves
      • Enums
      • HitscanDataAssets
      • PhysicalMaterials
      • Structures
      • VFX
    • Implementation
  • Bonuses
    • Turret
    • Shooting Range
    • Shooting Target
    • Light Manager
    • Music Manager
    • Procedural Aim Down Sights (Lite)
    • Procedural Recoils (Lite)
    • Hitmarker System
  • Demo Level in Depth
    • Overview
Powered by GitBook
On this page
  1. Core
  2. Design

Enums

PreviousCurvesNextHitscanDataAssets

Last updated 22 days ago

Enumerations in the hitscan component enhance code readability by defining a set of named constants. Here’s how we use them:

  • E_HitscanDataSelection: Dictates the data source for a hitscan operation. Options include:

    • InitialConfigs: Uses initial configuration settings.

    • Configs: Uses set of configurations inside the Component.

    • Data Asset: Utilizes a pre-defined data asset.

    • Params: Uses a structure for passing parameters to the OnPerformHitscan event.

  • E_HitscanPattern: Determines the pattern of hitscan shots:

    • Random: Fires hitscans in a random pattern.

    • Fixed: Uses a predetermined, consistent pattern.

    • Spread: Procedurally distributes hitscans with some randomization.

    • Horizontal: Limits scans to a horizontal trajectory.