Example #1
0
 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();
     }
 }
Example #3
0
 private void OnEmoteAttempt(EntityUid entity, SharedEmotingComponent component, EmoteAttemptEvent ev)
 {
     if (!component.Enabled)
     {
         ev.Cancel();
     }
 }