View unanswered posts | View active topics It is currently Thu Jan 09, 2025 10:10 pm



Reply to topic  [ 7 posts ] 
 Attachables question 
Author Message
User avatar

Joined: Wed Apr 16, 2008 9:33 am
Posts: 36
Reply with quote
Post 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.


Wed Apr 16, 2008 5:01 pm
Profile WWW
User avatar

Joined: Sat Jun 30, 2007 4:39 am
Posts: 521
Reply with quote
Post 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.


Wed Apr 16, 2008 5:31 pm
Profile WWW
User avatar

Joined: Fri May 11, 2007 4:30 pm
Posts: 1040
Location: England
Reply with quote
Post 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".


Wed Apr 16, 2008 5:44 pm
Profile
User avatar

Joined: Wed Apr 16, 2008 9:33 am
Posts: 36
Reply with quote
Post 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.


Wed Apr 16, 2008 6:02 pm
Profile WWW
User avatar

Joined: Fri May 11, 2007 4:30 pm
Posts: 1040
Location: England
Reply with quote
Post 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)."


Wed Apr 16, 2008 6:31 pm
Profile
User avatar

Joined: Fri Apr 27, 2007 4:55 pm
Posts: 1178
Location: America!
Reply with quote
Post 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.


Wed Apr 16, 2008 11:51 pm
Profile
User avatar

Joined: Fri May 11, 2007 4:30 pm
Posts: 1040
Location: England
Reply with quote
Post Re: Attachables question
the reason the wiki is "uncool" is because people won't add anything to it and be helpful.


Thu Apr 17, 2008 12:44 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.109s | 13 Queries | GZIP : Off ]