IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Is it possible to know where a key is assigned?

 
Loco Matheus  
Posted: Tuesday, Dec 11 2012, 18:08
Quote Post


Craziness at its best
Group Icon
Group: Members
Joined: Dec 31, 2010

ba.gif

XXXXX



Hi. Please guys, there's a way to know which keys are assigned to an action, for example:

CODE
action ENTER_EXIT_CAR key_1 store to 0@
action ENTER_EXIT_CAR key_2 store to 1@


So, in default settings, 0@ would be Enter and 1@ would be F.

Is something like that possible? Thanks in advance!
PM
  Top
 

 
Dutchy3010  
Posted: Tuesday, Dec 11 2012, 23:28
Quote Post


Female SCM coder!
Group Icon
Group: Moderators
Joined: Jul 30, 2006

nl.gif

Member Award




Of course there is the normal key pressed opcode, which you can use if you just want to check if some action is performed by pressing a key:
CODE
00E1:   player 0 pressed_key 19


There is also a cleo opcode, to figure out what specific key is pressed:
CODE
0AB0:  key_pressed 0x73

In the help files (Cleo 3 Code Library), you can find a list of virtual key codes.

I don't know exactly what you want to make, so if you mean something else, please say it.
Users WebsitePMMSNPlayStation Network
  Top
 

 
Loco Matheus  
Posted: Tuesday, Dec 11 2012, 23:35
Quote Post


Craziness at its best
Group Icon
Group: Members
Joined: Dec 31, 2010

ba.gif

XXXXX



Suppose the player changes the key for Enter/Exit Car to G and O. How can I know if a change has happened?

Thanks in advance.
PM
  Top
 

 
Dutchy3010  
Posted: Tuesday, Dec 11 2012, 23:43
Quote Post


Female SCM coder!
Group Icon
Group: Moderators
Joined: Jul 30, 2006

nl.gif

Member Award




Why do you want to know? The opcode is especially made so that the key which is pressed doesn't matter, only the action. So it doesn't matter if someone presses F, O or G, as long as the action is performed, that opcode is satisfied. Please be more specific if you want to use it for something special, so that we can give you a better advice.
Users WebsitePMMSNPlayStation Network
  Top
 

 
Loco Matheus  
Posted: Wednesday, Dec 12 2012, 14:50
Quote Post


Craziness at its best
Group Icon
Group: Members
Joined: Dec 31, 2010

ba.gif

XXXXX



00E1 worked for me! smile.gif

Sorry, I thought that 00E1 was the same of 0AB0.

Thank you very much! biggrin.gif
PM
  Top
 

 

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG