⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    TargetTrackingAmmoEffect MonoBehaviour

    Overview

    The TargetTrackingAmmoEffect behaviour is used to tag targets for guided projectiles to home in on. The projectiles must use a TargetingSystemTracker component.

    Inspector

    TargetTrackingAmmoEffect

    Properties

    Name Type Description
    Damage Type Dropdown The type of damage the impact counts as. This is a common property for all ammo effects and actually has no effect in this case.
    Secondary Effect AmmoEffect An optional secondary ammo effect to allow the tracking bullet to deal damage, etc.
    Tracker Lifetime Float The amount of time (seconds) the tracking effect will last for.
    Requires Damage Handler Boolean Does the hit object need to have a damage handler to correctly tag.
    On Target Tagged UnityEvent An event fired when an object is successfully tagged. You can use this to perform actions like switching ammo effects.

    See Also

    Modular Firearms

    Hitscan vs Projectiles

    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX