private void OnEmoteAttempt(EmoteAttemptEvent args) { if (!TryComp(args.Uid, out SharedEmotingComponent? emote) || !emote.Enabled) { args.Cancel(); } }
private void OnEmoteAttempt(EmoteAttemptEvent ev) { if (!ev.Entity.HasComponent <SharedEmotingComponent>()) { ev.Cancel(); } }
private void OnEmoteAttempt(EntityUid entity, SharedEmotingComponent component, EmoteAttemptEvent ev) { if (!component.Enabled) { ev.Cancel(); } }