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,499 guests, and 7 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
Entity Definitions Question #80038
06/30/06 13:35
06/30/06 13:35
Joined: Aug 2005
Posts: 57
crazycoder Offline OP
Junior Member
crazycoder  Offline OP
Junior Member

Joined: Aug 2005
Posts: 57
Here's one very simple question for you C-script/Gamestudio pros. I am going through the C-Script Workshops tutorials, and the author writes the following few lines regarding Entities (the question I have is at the bottom):

"...By writing an "entity" definition in the script:

entity rocket_ent
{
type = <launcher.mdl>;
layer = 10;
view = camera;
x = 20;
y = -10;
z = -10;
}

...The entities that are created using the "entity" definition should be used for player's guns, hands, etc because they have a special property: they are visible for the player but they don't really exist in the 3D world. These entities can be 3D models but they will never touch or hit anything in our levels, so you can be sure that they will never penetrate the walls, which is an advantage for us. "

Question: What does the author mean when he talks about "ENTITIES (created through the entity definition method) DON'T REALLY EXIST IN THE 3D WORLD?"

This is confusing especially because after that he states that "Entities will never touch or hit anything in our levels", and then goes on to state "they will never penetrate the walls".

Maybe I'm just slow today... If these entities don't exist in the 3D WORLD, I would expect the entity to pass through walls if my character is standing in front of a wall and pressing the rocket-launcher against it, since the rocket-launcher entity would be "not really existing in the 3D world". And yet instead the author shows a picture that says the rifle entity would not go through the wall, but does not elaborate or explain further.

An explanation / clarification would help greatly in regards to this.

Thank you!

CrazyCoderâ„¢

Re: Entity Definitions Question [Re: crazycoder] #80039
06/30/06 13:39
06/30/06 13:39
Joined: Aug 2003
Posts: 7,440
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,440
Red Dwarf
They are something just like Panels, nothing more, nothing less. Its not really the right definition, just imagine those view-entities are being rendered outside of the engine, a screenshot of it is taken and put on your screen.

Its like using ( it actually IS ) a model instead of a bmap for a panel, just that you cannot use things like buttons etc...


"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
Re: Entity Definitions Question [Re: Michael_Schwarz] #80040
06/30/06 13:41
06/30/06 13:41
Joined: Aug 2005
Posts: 57
crazycoder Offline OP
Junior Member
crazycoder  Offline OP
Junior Member

Joined: Aug 2005
Posts: 57
Thanks for the help! Two thumbs up for the explanation. Makes a lot of sense to me now.

CrazyCoder


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