Jump to content

Recommended Posts

Hellow guys,any1 have pickup system with button in inventory ?

like this,but with with a button in inventory,not with press F5!

// Search in game.py function OnUpdate and add:

		if 1 == constInfo.ENABLE_PICKUP:
			self.PickUpItem()	
// Search:

onPressKeyDict[app.DIK_F4]    = lambda : self.__PressQuickSlot(7)
// Add bellow:

onPressKeyDict[app.DIK_F5]    = lambda : self.__EnablePickUpItem()
 

	def	__EnablePickUpItem(self):
		global CHECK_ACTIVE_PICKUP
		if CHECK_ACTIVE_PICKUP == 0:
			CHECK_ACTIVE_PICKUP = 1
			constInfo.ENABLE_PICKUP = 1
		else:
			CHECK_ACTIVE_PICKUP = 0
			constInfo.ENABLE_PICKUP = 0
// Search:

testAlignment = 0
// Add bellow:

CHECK_ACTIVE_PICKUP = 0
// Add in constInfo.py:

ENABLE_PICKUP = 0

Thx!

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.