Item dragged\Cursor question!

  • #1, by fabian-schurgersThursday, 07. October, 09:58 2 weeks 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!




    Newbie

    99 Posts


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

    return game.UsedItem:isEmpty()
    1

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

    Imperator

    7025 Posts

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

    return game.UsedItem:isEmpty()
    1

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


    Newbie

    99 Posts

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

    Newbie

    99 Posts

Write post