Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Animate Gun When Shooting #103842
12/24/06 08:18
12/24/06 08:18
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
Hey,

just something simple and im sure im missing something... i want my gun to play an animation on left click (when shooting)...when i get a script that doesnt get any errors the animation doesnt work..otherwise i just get the error script error last line or something..anyone know how i can go about this ?

Nick

Last edited by Silent_Assassin; 12/24/06 08:34.

Visit us at www.m-tec-development.com WIP - Urban Conflict
Re: Animate Gun When Shooting [Re: Silent_Assassin] #103843
12/25/06 03:13
12/25/06 03:13
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
use med to animate the modle, then make a script for your game either at the end of the function main, or, inside of the player script...

code:
________________________________________________________________________________

while(mouse_left == 1){wait(1);

ent_cycle("frame", my.skill50);
my.skill50 += 5 * time;
my.skill50 %= 100;

}

________________________________________________________________________________

frame is the name fo the frame your animating.

have fun, and good luck.

Link.


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: Animate Gun When Shooting [Re: DLively] #103844
12/25/06 04:15
12/25/06 04:15
Joined: Jun 2005
Posts: 734
Under your couch
Silent_Assassin Offline OP
Developer
Silent_Assassin  Offline OP
Developer

Joined: Jun 2005
Posts: 734
Under your couch
hmm that bit of code only gives me errors ^^

here is my code

Quote:


entity coltdelta_view
{
type = <coltdelta.mdl>;
layer = 2; // display above view entities with layer 1
flags = visible;// visible on screen from the start
view = CAMERA; // same camera parameters as the default view
x = 120; // place 100 quants ahead of the view
y = -50; // 30 to the left
z = -100; // and center vertically

while(mouse_left == 1){wait(1);

ent_cycle("firing5", my.skill50);
my.skill50 += 5 * time;
my.skill50 %= 100;
}
}







Visit us at www.m-tec-development.com WIP - Urban Conflict

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1