Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (3run, AndrewAMD), 623 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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: 795
U.S.A. Michigan
exile Offline OP
User
exile  Offline OP
User

Joined: Apr 2005
Posts: 795
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 | chip programmers | 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