Data Realms Fan Forums
http://45.55.195.193/

Help - draworder for Attachables on Actors
http://45.55.195.193/viewtopic.php?f=1&t=25567
Page 1 of 1

Author:  The5 [ Sun Sep 18, 2011 7:29 pm ]
Post subject:  Help - draworder for Attachables on Actors

So my brother wants me to create him a soldier with this spacemarine-hemisphere-helmet.
The helmet would need to be attached to the torso, so it does not rotate with the head, however torso-attachments are always drawn behind the head.
Is it possible to make this attachable draw infront of the head?

Author:  Coops [ Sun Sep 18, 2011 8:11 pm ]
Post subject:  Re: Help - draworder for Attachables on Actors

Code:
DrawAfterParent = 1


Should be what your looking for.

Author:  MaximDude [ Sun Sep 18, 2011 9:37 pm ]
Post subject:  Re: Help - draworder for Attachables on Actors

That, and if you are using multiple attachables one a certain body/object and need them to be in a particular order, then whatever is pointed to be attached first will be the last layer.

Like so:
Code:
   AddAttachable = Attachable
      CopyOf = Blah 1
   AddAttachable = Attachable
      CopyOf = Blah 2
   AddAttachable = Attachable
      CopyOf = Blah 3

Here 'Blah 3' will be the top-most layer
Code:
   AddAttachable = Attachable
      CopyOf = Blah 3
   AddAttachable = Attachable
      CopyOf = Blah 2
   AddAttachable = Attachable
      CopyOf = Blah 1

And here 'Blah 1' will be the top-most layer.

Author:  The5 [ Sun Sep 18, 2011 10:05 pm ]
Post subject:  Re: Help - draworder for Attachables on Actors

Not quite what I need guys, i already know that stuff ;)
I hope this example makes clear what my problem is.

---
Example:
Object A
Attachable A-1 (DrawAfterParent = 0)
Attachable A-2 (DrawAfterParent = 1)
Draworder is:
Back: Attachable A-1 -> Object A -> Attachable A2 :Front
---
What I got is a AHuman:
Head
Torso(Ahuman)
ArmFG
ArmBG
Draworder is:
Back: ArmBG -> Torso -> Head -> ArmFG :Front
---
when attachign stuff it looks like that:
Head
+Attachable Head-1
Torso(Ahuman)
+Attachable Torso-1
Draworder is:
Back: [Torso->Attachable Torso-1] -> [Head -> Attachable Head-1] :Front
---

Now I want Attachable Torso-1 after Attachable Head-1!
Back: Torso -> [Head -> Attachable Head-1] -> [Attachable Torso-1] :Front
I want a Torso-Attachment to be drawn infront of the head :p

Author:  MaximDude [ Sun Sep 18, 2011 10:10 pm ]
Post subject:  Re: Help - draworder for Attachables on Actors

Well, if the head is DAP = 0 and the body attachment is DAP = 1, everything should be nice and dandy.
Beats me.

DrawAfterParent, Y U NO DO WHAT YOU ARE SUPPOSED TO!?

Author:  The5 [ Sun Sep 18, 2011 10:20 pm ]
Post subject:  Re: Help - draworder for Attachables on Actors

MaximDude wrote:
Well, if the head is DAP = 0 and the body attachment is DAP = 1, everything should be nice and dandy.
Beats me.

DrawAfterParent, Y U NO DO WHAT YOU ARE SUPPOSED TO!?


Oh!!!
I somehow expected that (example) armBG is automatically set to DAP = 0, get what I mean?
I did not consider just turning the heads DAP to 0! I'll try it immedaitely :D


EDIT:
Ok!! Head DAP = 0 worked like a charm! Thanks MD! (MDC is awesome btw :P)

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/