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
1 registered members (TipmyPip), 18,618 guests, and 5 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
Page 1 of 2 1 2
ENTITY* #208538
05/27/08 20:38
05/27/08 20:38
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline 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); )
Code:
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] #208548
05/27/08 21:26
05/27/08 21:26
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
x, y and z-values for view entities are given in relative view coordinates. try x = 0, y = 0, z = 20.

Re: ENTITY* [Re: Joey] #208551
05/27/08 21:34
05/27/08 21:34
Joined: Jul 2005
Posts: 262
Earth, The Netherlands
NL_3DGS_n00b Offline OP
Member
NL_3DGS_n00b  Offline OP
Member

Joined: Jul 2005
Posts: 262
Earth, The Netherlands
I tried your XYZ values, but still, I don't see the model on my screen...


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
Z
zazang Offline
User
zazang  Offline
User
Z

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: zazang] #208586
05/28/08 07:16
05/28/08 07:16
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
In LiteC, flags = visible has changed to flags2 = VISIBLE.

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 Offline OP
Member
NL_3DGS_n00b  Offline 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: NL_3DGS_n00b] #208598
05/28/08 08:18
05/28/08 08:18
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
and try slightly different positions. look up these relative view space coordinates in the manual.

Re: ENTITY* [Re: Joey] #208603
05/28/08 08:31
05/28/08 08:31
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline
Serious User
vlau  Offline
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Quote:

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.

Re: ENTITY* [Re: vlau] #208616
05/28/08 09:21
05/28/08 09:21
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline
Expert
Joey  Offline
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
setting it visible directly should be ok...

Re: ENTITY* [Re: Joey] #208686
05/28/08 20:09
05/28/08 20:09
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
Had the same problem myentity.flags2 |=VISIBLE is the solution.

Page 1 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