Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
ZorroGPT
by TipmyPip. 02/25/26 12:15
WFO Training with parallel cores Zorro64
by Martin_HH. 02/24/26 19:51
Camera always moves upwards?
by clonman. 02/21/26 09:29
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
5 registered members (TipmyPip, Grant, AndrewAMD, alibaba, Martin_HH), 5,525 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: ent_remove help. [Re: exile] #298478
11/15/09 13:06
11/15/09 13:06
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Originally Posted By: exile
I have already tried that. Because my player models box is rather large I have to create the bullet model so far out that it looks rather strange. Thanks though laugh

EDIT: Oh and Rei, sadly I currently have the "you" pointer being taken by... you = ent_create("mgun.mdl",my.x,gun_attach);. So I put, "you = player;" in my bullet code. Sadly, my character STILL picks it up.
To make this a bit easier, i'll post my gun code.
Code:
function pistolbullet()
{
	you = player;
my.ENABLE_BLOCK = ON;
my.ENABLE_ENTITY = on;
my.event = collisionhit;
my.passable = off;
my.pan = player.pan + 270;
my.tilt = player.tilt;
my.ambient = 100;
	while (1){
c_move(me, vector(0,60*time,0), nullvector,IGNORE_FLAG2+IGNORE_CONTENT+ignore_passable+IGNORE_ME+IGNORE_SPRITES+IGNORE_YOU);
wait (1);
}
}



Oh lol, you made a small mistake: the "you"-pointer is only right for one frame, so you can't put it in the beginning of a function and than not in the while ;):

So it must look like this:
Code:
function pistolbullet()
{
	my.ENABLE_BLOCK = ON;
	my.ENABLE_ENTITY = on;
	my.event = collisionhit;
	my.passable = off;
	my.pan = player.pan + 270;
	my.tilt = player.tilt;
	my.ambient = 100;
	while (1)
	{
		you = player;
		c_move(me, vector(0,60*time,0), nullvector,IGNORE_FLAG2+IGNORE_CONTENT+ignore_passable+IGNORE_ME+IGNORE_SPRITES+IGNORE_YOU);
		wait (1);
	}
}



Re: ent_remove help. [Re: Rei_Ayanami] #298546
11/15/09 22:29
11/15/09 22:29
Joined: Apr 2005
Posts: 796
U.S.A. Michigan
exile Offline OP
User
exile  Offline OP
User

Joined: Apr 2005
Posts: 796
U.S.A. Michigan
WOW! I cant believe I missed something so small and simple! LOL, Thanks so much for the help guys. Also, would you guys be interested in being beta testers?

Last edited by exile; 11/15/09 23:16.
Re: ent_remove help. [Re: exile] #298618
11/16/09 14:26
11/16/09 14:26
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
Rei_Ayanami Offline
Expert
Rei_Ayanami  Offline
Expert

Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
No problem laugh ,

and yes, maybe I am a beta tester for you wink

Page 2 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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