Jump to content
  • 0

AutoPickUP System


Quba

Question

  • Answers 4
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

4 answers to this question

Recommended Posts

  • 0

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
Link to comment
Share on other sites

  • 0
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

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


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