# Triggering Effect Source Behavior

FlagsNative | Function

Returns — string<gamelink::Behavior>

native string EventPlayerEffectUsedSourceBehavior();

# Supported triggers

Category: Environment / Effects

# Examples

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:5784

    lv_effect = EventPlayerEffectUsed();
    if ((lv_effect != null)) {
        lv_behavior = EventPlayerEffectUsedSourceBehavior();
        if ((lv_behavior != null)) {
            lv_periodicEffectCount = CatalogFieldValueCount(c_gameCatalogBehavior, lv_behavior, "PeriodicDisplayEffect", c_playerAny);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:5784

    lv_effect = EventPlayerEffectUsed();
    if ((lv_effect != null)) {
        lv_behavior = EventPlayerEffectUsedSourceBehavior();
        if ((lv_behavior != null)) {
            lv_periodicEffectCount = CatalogFieldValueCount(c_gameCatalogBehavior, lv_behavior, "PeriodicDisplayEffect", c_playerAny);