Quantcast

Jump to content

» «
Photo

While right mouse button down

4 replies to this topic
Wiebrendh
  • Wiebrendh

    Beginning C# programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#1

Posted 27 April 2014 - 08:41 AM

I have to make a option that while the right mouse button is down, a variable will be increased by one every 100ms (depends on the interval) and when u release the right mouse button i will stop increasing.

julionib
  • julionib

    Coder

  • Members
  • Joined: 13 Sep 2012
  • Brazil

#2

Posted 27 April 2014 - 08:45 AM

for your robery mod? to increase how much you scare the victim? you can use this to detect if player is aiming:

if game.isGameKeyPressed(gameKey.aim) then

or in a simple way direct detect the rmb down:

if game.isKeyPressed(keys.rbutton) then

or you can even use the native method IS_GAME_KEYBOARD_KEY_PRESSED


Wiebrendh
  • Wiebrendh

    Beginning C# programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#3

Posted 27 April 2014 - 09:13 AM

for your robery mod? to increase how much you scare the victim? you can use this to detect if player is aiming:

if game.isGameKeyPressed(gameKey.aim) then

or in a simple way direct detect the rmb down:

if game.isKeyPressed(keys.rbutton) then

or you can even use the native method IS_GAME_KEYBOARD_KEY_PRESSED

 

Haha, yep you guest it right :) I am gonna test it when i get home.


julionib
  • julionib

    Coder

  • Members
  • Joined: 13 Sep 2012
  • Brazil

#4

Posted 27 April 2014 - 09:46 AM

case you need some help playing anims this tutorial may help:

 

http://gtaxscripting...animations.html


Wiebrendh
  • Wiebrendh

    Beginning C# programmer

  • Members
  • Joined: 22 Mar 2014
  • Netherlands

#5

Posted 27 April 2014 - 10:37 AM

case you need some help playing anims this tutorial may help:

 

http://gtaxscripting...animations.html

 

Owh, thanks! Gonna use that for sure :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users