Jump to content

[LE] Input.HoldKey() not working/working inconsistently


irswat

Recommended Posts

	elseif curCMDFromList=="Map"
		int MapKey = Input.GetMappedKey("Quick Map")
		Input.HoldKey(MapKey)
		utility.wait(0.01)
		Input.ReleaseKey(MapKey)
	elseif curCMDFromList=="Save"
		int SaveKey = Input.GetMappedKey("Quicksave")
		Input.HoldKey(SaveKey)
		utility.wait(0.01)
		Input.ReleaseKey(SaveKey)
		;debug.trace("save")
	elseif curCMDFromList=="Exit" || curCMDFromList=="Quit"
		Debug.QuitGame()
	elseif curCMDFromList=="Sheath"
		int SheathKey = Input.GetMappedKey("Ready Weapon")
		Input.HoldKey(SheathKey)
		utility.wait(0.01)
		Input.ReleaseKey(SheathKey)
	elseif curCMDFromList=="Run"
		int RunKey = Input.GetMappedKey("Toggle Always Run")
		Input.HoldKey(RunKey)
		utility.wait(0.01)	
		Input.ReleaseKey(RunKey)
	endif

Map works, none of the other commands work. Even exit doesn't work.

Link to comment
Share on other sites

Neither seem to work, but I think the problem might be elsewhere after reviewing my logs. thanks Ishara. the conditional statements are detecting correctly, but there is left over data from previous loops or something

Edited by irswat
Link to comment
Share on other sites

  • Recently Browsing   0 members

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