3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 [2]

Author Topic: A scripted Gun recoil - for FPS games  (Read 4813 times)

« Reply #15 on: June 29, 2011, 04:13:16 PM »
I got it I had to change
Code: [Select]
if(iMouseButtonClick(0)){
      RECOIL = true;
      iObjectStart(PROJECTILE);
   }
to
Code: [Select]
if(iMouseButtonDown(0)){
      RECOIL = true;
      iObjectStart(PROJECTILE);
   }
aren't those both the same thing?

iMouseButtonClick() returns true when the mouse button is pressed and released (i.e. clicked).
iMouseButtonDown() returns true when the mouse button is pressed (i.e. down).
Using 3D Rad v7.10, Windows 7 / Arch Linux, AMD Sempron 2.1GHz, ATI Radeon HD 3200.

Advanced Script Editor for 3D Rad (v3.0.2)
« Reply #16 on: June 29, 2011, 04:22:34 PM »
iMouseButtonClick() returns true when the mouse button is pressed and released (i.e. clicked).
iMouseButtonDown() returns true when the mouse button is pressed (i.e. down).
Yea but when I have it at
iMouseButtonClick() it only does the recoil when my ammo is at 0
« Reply #17 on: July 12, 2011, 01:35:22 PM »
Helped me ALOT :)
I ❤ Boxing
« Reply #18 on: March 09, 2012, 04:15:15 PM »
How can I make my bullet's go strait even though it is lined up with my gun? Also, Semi Automatic bullets, any tips?
Pages: 1 [2]