• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Need help. CallGameEvent for Add 1 item. i got double items alwasy

Artty

New member
Hi 

on dedicated server. i trying to create a buff to call event for add 1 item. but it give me 2 items always. but i try on offline, it give me correct number as setting. Thank you in advance.

here is the buff.

        <buff name="buffSuccess-M60LV1" hidden="true" icon="server_favorite" icon_color="235,252,4" icon_blink="true" remove_on_death="false">
            <stack_type value="ignore"/>
            <duration value="0.01"/>
            <display_value value="duration"/>
            <effect_group>
                <requirement name="!HasBuff" buff="buffFail-M60LV1"/>
                <triggered_effect trigger="onSelfBuffFinish" action="CallGameEvent" event="Success-M60ImpLV1" allow_client_call="true"/>
            </effect_group>
            <triggered_effect trigger="onSelfBuffStart" action="PlaySound" sound="forge_item_complete"/>
            <triggered_effect trigger="onSelfBuffRemove" action="RemoveBuff" buff="buffSuccess-M60LV1"/>
        </buff>

here is the event

<action_sequence name="Success-M60LV1">
        <action class="AddItems">
            <property name="added_items" value="gunMGT4M60LV1" />
            <property name="added_item_counts" value="1" />
            <property name="phase" value="0" />
        </action>
        
        <action class="BeltTooltip">
            <property name="text" value="Success!!" />
            <property name="phase" value="1" />
        </action>
    </action_sequence>

 
Back
Top