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

 Key status check

 Pressed or not?
 
JACK JONES  
Posted: Monday, Aug 6 2012, 13:05
Quote Post


firearms and adrenaline
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



The title says almost everything - I need a conditional check for a key. I want to make something happen only if I hold a right mouse key and when I stop holding it the operation will stop. I tried 00E2 but it's crashing VC. I was searching a topic about this on gtaforums but I had no luck at all. If this was already discused can some1 point me in the right direction please?
PM
  Top
 

 
SilentPL  
Posted: Monday, Aug 6 2012, 13:17
Quote Post


Senior File Manager
Group Icon
Group: Members
Joined: Feb 1, 2010

pl.gif

Member Award




I might've misunderstood you, but why not use 00E1?
Users WebsitePMMSNXbox Live
  Top
 

 
JACK JONES  
Posted: Monday, Aug 6 2012, 13:36
Quote Post


firearms and adrenaline
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



Because with that opcode the players animation still continuous (after the key is pressed) so I have to break it with 011C. Besides - the command name of the 00E1 says "IS_BUTTON_PRESSED" and I need "IS_PLAYER_PRESSING_BUTTON_NOW".

EDIT: Problem solved thanks to memory addresses smile.gif.

This post has been edited by JACK JONES on Monday, Aug 6 2012, 14:38
PM
  Top
 

 
GTA-Roloboy  
Posted: Monday, Aug 6 2012, 16:05
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 1, 2007

XXXXX



QUOTE (JACK JONES @ Monday, Aug 6 2012, 13:36)
Because with that opcode the players animation still continuous (after the key is pressed) so I have to break it with 011C. Besides - the command name of the 00E1 says "IS_BUTTON_PRESSED" and I need "IS_PLAYER_PRESSING_BUTTON_NOW".

EDIT: Problem solved thanks to memory addresses smile.gif.

What memory addresses?
PM
  Top
 

 
JACK JONES  
Posted: Monday, Aug 6 2012, 16:25
Quote Post


firearms and adrenaline
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



PM
  Top
 

 
GTA-Roloboy  
Posted: Monday, Aug 6 2012, 16:29
Quote Post


Player Hater
Group Icon
Group: Members
Joined: May 1, 2007

XXXXX



QUOTE (JACK JONES @ Monday, Aug 6 2012, 16:25)
Go here:
http://www.gtamodding.com/index.php?title=...sses_(VC)#Mouse

Thanks
PM
  Top
 

 
Ashwin the new boy  
Posted: Tuesday, Aug 7 2012, 12:48
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



Feeling too good that my Contribution Helped Someone, smile.gif
Users WebsitePM
  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