Item dragged\Cursor question!

  • #1, by fabian-schurgersThursday, 07. October 2021, 09:58 2 years ago
    Hi there,

    I was wondering if someone could help me with the following.

    I have a character in my game, that can be talked to. If you mouse over the character, the cursor will change to a little textcloud image.

    ''If cursor enters object area, change cursor to 'talk'"

    But you can also use an item on the character. My problem is that if you drag an item onto the character, the mouse cursor will change to the textcloud, and you can't use the item.

    Is there an option to say 'if item is dragged' or something similar?
    Then I could say that the cursor should only change to the textcloud if the 'item dragged' option is false.

    Does this make any sense? smile Anyway, thanks!




    Forum Fan

    127 Posts


  • #2, by afrlmeThursday, 07. October 2021, 11:32 2 years ago
    You can use the if lua result action part & insert this into it:

    return game.UsedItem:isEmpty()

    & it will return true if no item is currently being held by the current character.

    Imperator

    7278 Posts

  • #3, by fabian-schurgersThursday, 07. October 2021, 12:31 2 years ago
    You can use the if lua result action part & insert this into it:

    return game.UsedItem:isEmpty()

    & it will return true if no item is currently being held by the current character.
    Oh, thanks! Will try that!


    Forum Fan

    127 Posts

  • #4, by fabian-schurgersThursday, 07. October 2021, 12:40 2 years ago
    Many thanks, works like a charm!

    Forum Fan

    127 Posts