Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
HELP PLEASE, BULLET #348433
11/26/10 20:42
11/26/10 20:42
Joined: Aug 2010
Posts: 15
T
Totolia Offline OP
Newbie
Totolia  Offline OP
Newbie
T

Joined: Aug 2010
Posts: 15
I'm trying to make out a projectile, a bullet but I can not. The bullet appears but does not move.

Quote:
if(mouse_left){
ent_create ("bala.mdl", vector(prota.x - 5,prota.y + 7, prota.z + 14), disparar);
}

action disparar (){
my.scale_x = 0.1;
my.scale_y = 0.1;
my.scale_z = 0.1;

my.pan = your.pan; // face same direction as player
c_move(my,vector(40*time_step,0,0),NULL,IGNORE_YOU);
}


Re: HELP PLEASE, BULLET [Re: Totolia] #348434
11/26/10 20:52
11/26/10 20:52
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
try to update your entity with
c_setminmax(me) or c_updatehull(me,1);


Visit my site: www.masterq32.de
Re: HELP PLEASE, BULLET [Re: Totolia] #348435
11/26/10 20:54
11/26/10 20:54
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
You have to put c_move in a loop:

Code:
if(mouse_left){
ent_create ("bala.mdl", vector(prota.x - 5,prota.y + 7, prota.z + 14), disparar);
}

action disparar (){
my.scale_x = 0.1;
my.scale_y = 0.1;
my.scale_z = 0.1;
	
		my.pan = your.pan; // face same direction as player
while(1)
{
			c_move(my,vector(40*time_step,0,0),NULL,IGNORE_YOU);
wait(1);
}
}




3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: HELP PLEASE, BULLET [Re: painkiller] #348437
11/26/10 20:59
11/26/10 20:59
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
oh sh***
i did't see that grin


Visit my site: www.masterq32.de
Re: HELP PLEASE, BULLET [Re: painkiller] #348439
11/26/10 21:06
11/26/10 21:06
Joined: Aug 2010
Posts: 15
T
Totolia Offline OP
Newbie
Totolia  Offline OP
Newbie
T

Joined: Aug 2010
Posts: 15
Not because I close the program.
I close the program automatically without displaying error or anything.

Last edited by Totolia; 11/26/10 21:07.

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