Jump to content

'IsKeyPressed'-function doesn't work?


Patzifist

Recommended Posts

Begin GameMode
____if IsKeyPressed 49 == 1
________Player.EquipItem ThermalVisionMisc
____endif
End
----------------------------------------------------------------------------
short bIsNPressed
Begin GameMode
____if bIsNPressed != IsKeyPressed 49
________set bIsNPressed to IsKeyPressed 49
________if bIsNPressed
____________Player.EquipItem ThermalVisionMisc
________endif
____endif
End

 

----------------------------------------------------------------------------

 

 

Hello,

 

could anybody tell my whats wrong with the two scripts above? I want my New Vegas to constantly check whether the button 'N' is pressed, so I use a quest with 'Start game enabled' that activates a script; but it seems like i have to hold it for up to 10 seconds till the 'Player.EquipItem ThermalVisionMisc' command works (no matter which one of the scripts I use). I just don't get why this problem occurs and I hope somebody could explain the mistake to me :smile:

 

Thanks to everyone trying to help,

Patzifist

Edited by Patzifist
Link to comment
Share on other sites

That would be it, if you have it attached to a quest you most likely have the default "Script Processing Delay" which is five seconds. So uncheck it and set it to .1 or something smaller.

Edited by JJ2198
Link to comment
Share on other sites

That would be it, if you have it attached to a quest you most likely have the default "Script Processing Delay" which is five seconds. So uncheck it and set it to .1 or something smaller.

Oh my god, FINALLY!!! Dude, I love you <3

Link to comment
Share on other sites

  • Recently Browsing   0 members

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