Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
Lawrence

Check if weapon is equipped

Question

Hi everyone, I modified the scene_item in order to equip/unequip weapons from there. The part for equip or unequip a thing is this:

        unless $itemselected.id == target.weapon_id
          target.equip(0, $itemselected.id)
        else
          target.equip(0, 0)
        end

That works for one character, but how do I check if the weapon is equipped by another character (not the target) ?

Can you help me? Thanks.

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Well... Damn.

Just discovered that If I equip an item it disappears from the list... Great. More things to fix!

Edited by Lawrence

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...