Jump to content
×
×
  • Create New...
  • 0

PickUp system


emanuel

Question

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
  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


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.