• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

The counter is not working

Hello. I wrote a mod that counts kills with a specific weapon. To track kills from grounded turrets, I use the following code:

<triggered_effect trigger="onSelfKilledOther" action="ModifyCVar" cvar="CountRoboticsExpert" operation="add" value="1">
<requirement name="HoldingItemHasTags" tags="perkTurrets"/>
<requirement name="ItemHasTags" tags="perkTurrets"/>
<requirement name="!EntityTagCompare" target="other" tags="vehicle"/>
</triggered_effect>

This counter works correctly in local play. However, when using it on a dedicated server, it stops counting if an enemy is killed by a turret placed on the ground.

Could you tell me what this issue is?
 
Back
Top