1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to make events for shift + F?

Discussion in 'Skript' started by Jenyu, Mar 18, 2022.

Thread Status:
Not open for further replies.
  1. Jenyu

    Jenyu Member

    Joined:
    Mar 18, 2022
    Messages:
    1
    Likes Received:
    0
    Hey! i need help. i want to create a "manual", but i have a problem.
    i want to cancel those events and trigger a specific event when i press Shift and F at the same time.

    for example...

    Code (Text):
    1. on sneak toggle:
    2.     on swap hand items:
    3.         cancel event
    4.         send "some message"
    5.  
    6. #or
    7.  
    8. on sneak toggle:
    9.     if player's event-swap hand items:
    10.         send "some messagge"
    11.     else:
    12.         cancel event
    is there any way to make this possible?
     
  2. ryanrox333

    ryanrox333 Member

    Joined:
    Jul 6, 2019
    Messages:
    17
    Likes Received:
    0
    Just check if the player is sneaking when they click F.
    Code (Text):
    1. on swap hand items:
    2.     if player is sneaking:
    3.         # do something
     
    • Agree Agree x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...