3 registered members (NewbieZorro, TipmyPip, 1 invisible),
19,045
guests, and 8
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
map_subents not working??
#425206
06/28/13 23:41
06/28/13 23:41
|
Joined: Nov 2006
Posts: 497 Ohio
xbox
OP
Senior Member
|
OP
Senior Member
Joined: Nov 2006
Posts: 497
Ohio
|
Hi, I have a main level that contains many rooms, and those rooms are just a single separate WMB map entity, (Hope I haven't lost anyone yet). In that small map entity, I have several models placed, However when I run my main level, the rooms are created, but their models are not created.
In the main levels code, right before the main WMB is loaded, I have map_subents = 1; However, no subentities are created. Why?
If you need any other information that I may have missed, please ask and I will gladly provide the information.
P.S. I'm using A8 free.
Last edited by xbox; 06/28/13 23:42.
|
|
|
Re: map_subents not working??
[Re: xbox]
#425247
06/29/13 23:03
06/29/13 23:03
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
Saving and compiling them as a map entity is the same as when you build a regular level, the meshes don't get merged but just the information where which entities need to be created with some initialization information gets saved, not more.
The vector-solution is an easy, relatively fast and flexible solution, you should give it a try. One hint: vec_diff(my.skill60,my.x,my.parent.x); // once at the start of the action ... vec_set(my.x,my.parent.x); // in a loop vec_add(my.x,my.skill60);
The code above is a very simple way to keep a non-rotated entity at the same relative position in respect of the parent entity (your room), even when you move the latter.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual Check out my new game: Pogostuck: Rage With Your Friends
|
|
|
|