prevent repeat TriggerOnCollide triggers (#40428)

* prevent repeat TriggerOnCollide triggers

* review comment: remove TriggerOnCollide when out of triggers
This commit is contained in:
Charlie Morley
2025-09-21 09:23:37 -06:00
committed by GitHub
parent 7678251ad5
commit 818a715822
6 changed files with 34 additions and 1 deletions

View File

@@ -20,4 +20,10 @@ public sealed partial class TriggerOnCollideComponent : BaseTriggerOnXComponent
/// </summary>
[DataField, AutoNetworkedField]
public bool IgnoreOtherNonHard = true;
/// <summary>
/// If not null, limits the amount of times this component can trigger.
/// </summary>
[DataField, AutoNetworkedField]
public int? MaxTriggers = null;
}