Jump to content

IsKeyPressed () function not working please help


Praveen

Recommended Posts

I have trouble getting this work in game

 

import Input

 

Event OnInit()

RegisterForSingleUpdate(0.1)

EndEvent

 

Event OnUpdate()

 

if (IsKeyPressed(0x58))

Debug.MessageBox("weapons are added.")

Stop()

else

RegisterForSingleUpdate(0.1)

endif

 

EndEvent

 

The script compiles with no errors but not working in game , please help

Link to comment
Share on other sites

  • 7 months later...
  • Recently Browsing   0 members

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