|
1 registered members (1 invisible),
3,659
guests, and 14
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Object and Entity - fundamental differences?
[Re: dschomburg]
#67223
03/18/06 21:35
03/18/06 21:35
|
Joined: Nov 2002
Posts: 2,148 Germany
Dima
Expert
|
Expert
Joined: Nov 2002
Posts: 2,148
Germany
|
Just search for "map entities" ... should help!
I'm not afraid of competition cos I'm know that I'm best
|
|
|
Re: Object and Entity - fundamental differences?
[Re: dschomburg]
#67225
03/18/06 22:07
03/18/06 22:07
|
Joined: Dec 2005
Posts: 414 Munich, Germany
Robotronic
Senior Member
|
Senior Member
Joined: Dec 2005
Posts: 414
Munich, Germany
|
Hi! I think, there are no fundamental differences: Both, entitys and objects (the manual talks of panels or texts for example as objects)work similar to predefined structs in C. You can define instances of them and access their predefined attributes in a similar way. However there is a difference between level-entitys (map-entitys, models, sprites, terrain) and the script-defined 2D-elements, like panels, or entity definitions (view entitys). So, idf I would talk of an object, I would probably think of a 2D-Element, and if I hear "entity", I would think of a 3d-element, that can be moved in the Level. The level geometry (blocks) work very different. You can´t attach actions/functions to blocks. But you can build blocks as map-entities and then work with them in a similar way, as with models. I wouldn´t call them objects, just in order to prevent confusion with panels and these things.
Edit: Okay, I see your question has gone into a more practical direction (typed my answer before your last post). If you want to create a map-entity (in this case a door), you have to save the block as a prefab and then import in an empty level. Here (after texturing) you can compile / build this level, but not as a level, but as a map entity. It becomes a .wmb file. This .wmb file can be placed in the folder of the original level, where you can use it in many ways like a model, you can give it actions, move it around and so on.
Last edited by Robotronic; 03/18/06 22:17.
|
|
|
Re: Object and Entity - fundamental differences?
[Re: dschomburg]
#67227
03/18/06 22:20
03/18/06 22:20
|
Joined: Dec 2005
Posts: 414 Munich, Germany
Robotronic
Senior Member
|
Senior Member
Joined: Dec 2005
Posts: 414
Munich, Germany
|
There is a very useful way to make copies of entitys, such as your door. If you move it, while holding the shift-key it´s copied, so maybe this just happened accidentally?  Edit: But normally, if you place a model or map-entity with "add model" there should only be one copy. The word "geometry" or "blocks" are normally used for these blocks, that are created with WED. A map entity is created in a similar way, but can be used different. There are certain rules and restrictions for levelgeometry, most important, that they must not be concave, must not be smaller than two quants and so on. Models, that are created with a model-editor work very different and more comfortable in many ways.
Last edited by Robotronic; 03/18/06 22:29.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|