This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Talk:IsControlPressed

From the Oblivion ConstructionSet Wiki
Revision as of 08:55, 18 September 2008 by imported>Shademe (→‎Detecting the second control pressed ?)
Jump to navigation Jump to search

Detecting the second control pressed ?

How do I detect if a second control was pressed ( not held down ) when detecting the 1st control pressed , i.e., I'm holding down the grab key and I want to check if the activate key was pressed during that time, when I was holding the grab key ... -- shademe 08:19, 18 September 2008 (EDT)

if ( IsControlPressed 28 )
  if ( OnControlDown 5 )
    ;code goes here
  endif
endif
Dragoon Wraith TALK 08:43, 18 September 2008 (EDT)

Thanks for the quick reply ! But that didn't work :( Tried that before - that clause didn't activate when I pressed the activate key. Think how fast the script runs has something to do with this ? I'm right now running this in a quest script, DelayTime = 0.001, almost once every frame... -- shademe 08:55, 18 September 2008 (EDT)