hiding his body

ds14048

Content Creator
Joined
Nov 5, 2012
Likes
203
#1
When using the Faceless Faceless Mod.fla template-v0.98.3 is the correct actionscript for hiding his original body parts ?

//right arm
main.him.armContainer.arm.upperArm.getChildAt(0).visible = false;
main.him.armContainer.arm.lowerArm.getChildAt(0).visible = false;
main.him.armContainer.arm.hand.getChildAt(0).visible = false;

Or this?
//right arm
g.him.armContainer.arm.upperArm.getChildAt(0).visible = false;
g.him.armContainer.arm.lowerArm.getChildAt(0).visible = false;
g.him.armContainer.arm.hand.getChildAt(0).visible = false;

Or are both of these incorrect?
 

sby

Content Creator
Joined
Sep 11, 2012
Likes
410
#2
depends on what main points to. in my mods, i usually set main to the loader object. however the loader object also grabs references to him and her:
her = g.her;
him = g.him;

so yes, they are most likely the same. I would note that it looks like this is only hiding his right arm though
 

ds14048

Content Creator
Joined
Nov 5, 2012
Likes
203
#3
Great, Thank you,
Yes I only used the right arm as my example rather than pasting the entire script.
I have Mod.fla template v0.97.2 that uses "main.him" and
Mod.fla template v0.98.3 that uses "g.him" I did not know if the first was out dated or if I had incorrect information.
 
Top Bottom