Jump to content

Recommended Posts

If I understood well you want it, here is a simple function (i not tested):

// 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
  • Good 1
Link to comment
Share on other sites

14 hours ago, VegaS said:

If I understood well you want it, here is a simple function (i not tested):

// 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

 

Thank you man, i try .

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.