add StartDelay bool to actions (#33026)
* add StartDelay bool to actions * forgot summary
This commit is contained in:
@@ -813,6 +813,9 @@ public abstract class SharedActionsSystem : EntitySystem
|
||||
if (action.AttachedEntity != null)
|
||||
RemoveAction(action.AttachedEntity.Value, actionId, action: action);
|
||||
|
||||
if (action.StartDelay && action.UseDelay != null)
|
||||
SetCooldown(actionId, action.UseDelay.Value);
|
||||
|
||||
DebugTools.AssertOwner(performer, comp);
|
||||
comp ??= EnsureComp<ActionsComponent>(performer);
|
||||
action.AttachedEntity = performer;
|
||||
|
||||
Reference in New Issue
Block a user