2 registered members (TipmyPip, 1 invisible),
18,731
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
ENTITY*
#208538
05/27/08 20:38
05/27/08 20:38
|
Joined: Jul 2005
Posts: 262 Earth, The Netherlands
NL_3DGS_n00b
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
|
I have this snippet in my script, but it doesn't seem to work... The model is not displayed. I dont get any errors, I played with the XYZ values. Is there something wrong with this snippet? (mdl file exists, also tried set(gun,VISIBLE); ) ENTITY* gun = {
type = "pistol.mdl";
layer = 10;
view = camera;
x = camera.x;
y = camera.y - 40;
z = camera.z;
flags = VISIBLE;
}
The best games are the games you create yourself.
|
|
|
Re: ENTITY*
[Re: NL_3DGS_n00b]
#208568
05/28/08 02:07
05/28/08 02:07
|
Joined: Oct 2003
Posts: 702
zazang
User
|
User
Joined: Oct 2003
Posts: 702
|
The code looks fine to me...I think there is something fishy with your gun model. Try checking the same code with some other mdl files and see.
I like good 'views' because they have no 'strings' attached..
|
|
|
Re: ENTITY*
[Re: vlau]
#208597
05/28/08 08:09
05/28/08 08:09
|
Joined: Jul 2005
Posts: 262 Earth, The Netherlands
NL_3DGS_n00b
OP
Member
|
OP
Member
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
|
Thank you, I will try that as soon as I get home. I also tried things as:
set(gun,VISIBLE);
But for testing the position of the model, I thought, why not setting the ENTITY directly to VISIBLE.
So I will try flags2 this afternoon. Thank you for your replies.
(If it still doesn't work, I will try different models)
The best games are the games you create yourself.
|
|
|
Re: ENTITY*
[Re: Joey]
#208603
05/28/08 08:31
05/28/08 08:31
|
Joined: Aug 2005
Posts: 1,558 HK
vlau
Serious User
|
Serious User
Joined: Aug 2005
Posts: 1,558
HK
|
why not setting the ENTITY directly to VISIBLE.
Not sure, perhaps they want differentiate between level entities and view entities. You can load an view entity without loading the level.
|
|
|
|