Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
FINN MAN
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 28th Jul 2004 03:59
i know how make the gun and move it around but how to i fire the gun? (its a machine gun)
FINN MAN
20
Years of Service
User Offline
Joined: 2nd May 2004
Location:
Posted: 28th Jul 2004 04:15
any one?
demons breath
20
Years of Service
User Offline
Joined: 4th Oct 2003
Location: Surrey, UK
Posted: 28th Jul 2004 20:37
OK i think it works something like this but I'm not sure because I havent tried this in ages and I just pulled the code out of a game I started making a long time ago where there were several guns and stuff so Im not sure if I've got everything you need.

At the top:

Ammo#=12
the ammo value can be anything you want

In the loop:
if Mouseclick()=1 and BulletLife=0 and Ammo#=>0 and tog=1
bX#=Object position X(2)
bY#=Object position Y(2)
bZ#=Object position Z(2)
play sound 2
Ammo#=Ammo#-1
Position object 2,X#,Y#+43,Z#
Set object to camera orientation 2
BulletLife =25
Show object 2
Endif


then

If BulletLife > 0
Dec BulletLife
Move object 4,20
If BulletLife = 0 then Hide object 4
Endif

Am I the only one here who's really confused?
ALPHA ZERO PRODUCTIONS
20
Years of Service
User Offline
Joined: 28th Sep 2003
Location: Mom ! I forgot where we live !
Posted: 28th Jul 2004 21:23
check twice

Login to post a reply

Server time is: 2024-09-22 18:37:58
Your offset time is: 2024-09-22 18:37:58