Difference between revisions of "Talk:IsControlPressed"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
imported>Shademe
Line 1: Line 1:
== Detecting the second control pressed ? ==
== 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 pessed during that time, when I was holding the grab key ... -- [[User:Shademe|shademe]] 08:19, 18 September 2008 (EDT)
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 ... -- [[User:Shademe|shademe]] 08:19, 18 September 2008 (EDT)


  if ( IsControlPressed 28 )
  if ( IsControlPressed 28 )
Line 9: Line 9:
  endif
  endif
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 08:43, 18 September 2008 (EDT)
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 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... -- [[User:Shademe|shademe]] 08:55, 18 September 2008 (EDT)

Revision as of 07:55, 18 September 2008

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)