|
3 registered members (TipmyPip, clint000, Grant),
6,810
guests, and 4
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
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
Expert
|
Expert
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
|
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  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.
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:
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
OP
User
|
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.
|
|
|
|