Data Realms Fan Forums
http://45.55.195.193/

Attachables question
http://45.55.195.193/viewtopic.php?f=1&t=10971
Page 1 of 1

Author:  TheFanciestOfPants [ Wed Apr 16, 2008 5:01 pm ]
Post subject:  Attachables question

Hey all, first post.

Pretty straightforward question: can attachables on an actor's(specifically an Ahuman) torso overlap that actors head/arms? Meaning can the parent torso be overlapped by an arm, which is then in turn overlapped by one of the torso's attachables?

Cheers in advance.

Author:  Electroclan [ Wed Apr 16, 2008 5:31 pm ]
Post subject:  Re: Attachables question

Greetings Fancy Pants.

You must be talking about the variable "DrawAfterParent". This variable can be applied to anything with a sprite and a parent object. Yes, attachables.

DrawAfterParent = 0 - The sprite is drawn behind it's parent.
DrawAfterParent = 1 - The sprite is drawn above it's parent.

Classic code example would be magazines and devices.

However, I am not sure as to what the game engine does for multiple attachment trees. I suggest experimentation.

Author:  robolee [ Wed Apr 16, 2008 5:44 pm ]
Post subject:  Re: Attachables question

this is explained on the wiki... a lot, veterans may not need to use it or even visit it >:( ... but it contains a lot of information valuable for "newbies".

Author:  TheFanciestOfPants [ Wed Apr 16, 2008 6:02 pm ]
Post subject:  Re: Attachables question

Thanks electroclan, for the welcome and the info. I've had no trouble with the drawafterparent stuff so far, but in my experimentation I've yet to get the sucker to be in the foreground in front of it's children. Maybe I can stick the attachment on the child and lock it's movement somehow(I've found nothing that does this so far). Or I just scrap this little detail 8)

robolee wrote:
this is explained on the wiki... a lot, veterans may not need to use it or even visit it >:( ... but it contains a lot of information valuable for "newbies".


Actually, no it isn't. There's some basic info on what attachables are, but that's not what I asked about. Thanks anyhoo.

Author:  robolee [ Wed Apr 16, 2008 6:31 pm ]
Post subject:  Re: Attachables question

I didn't do attachables , but I did cover this variable.
http://www.datarealms.com/wiki/index.php/HDFirearm
" DrawAfterParent = 0 // Boolean value that determines if it is drawn in front of the parent a.k.a hand (1) or not (0)."

Author:  Lord Tim [ Wed Apr 16, 2008 11:51 pm ]
Post subject:  Re: Attachables question

robolee wrote:
I didn't do attachables , but I did cover this variable.
http://www.datarealms.com/wiki/index.php/HDFirearm
" DrawAfterParent = 0 // Boolean value that determines if it is drawn in front of the parent a.k.a hand (1) or not (0)."


Yeah. On the HDFirearm page. Which is the reason the wiki is uncool.

I'll do a tutorial for my big tutorial thing on attachables and gibs and stuff.

Author:  robolee [ Thu Apr 17, 2008 12:44 am ]
Post subject:  Re: Attachables question

the reason the wiki is "uncool" is because people won't add anything to it and be helpful.

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