TCArknight
Well-known member
Hi all!
I'm working on a dataset and in this dataset there are pieces of gear to represent the limbs, body and head of a robot.
This Robot arm can come in a couple of varieties, one with a claw, and one with a laser for example. I thought about accomplishing this with a Mod whcich could be applied to the arm itself.
If I do this, the Laser Gun never shows on the hero (i think it should under the Ranged Weapons). In this instance, if I look at the gizmo Picks for robArm I see both the modLaserArm listed and the wpLaserGun listed as well.
I tried adding Helper.Shadow to the wpLaserGun bootstrap, but it didn't help.
Robot body part component:
Robot Mod component:
So, I appear to have:
when I'm looking to have:
Any thoughts on what may be missing?
I'm working on a dataset and in this dataset there are pieces of gear to represent the limbs, body and head of a robot.
Code:
<thing id="robArm" name="Robot Arm" description="Arm of the robot" compset="Robot">
<!-- Tag indicates what part this belongs to -->
<tag group="RobotBody" tag="Arm"/>
<tag group="ItemModCatAllowed" tag="RobotArm"/>
<child entity="ItemMods"></child>
</thing>
Code:
<thing id="modLaserArm" name="Laser Emitter" description="You can cut objects or make ranged attacks using a laser." compset="RobotMod">
<fieldval field="modNamePrefix" value="Laser"/>
<tag group="ItemModCat" tag="RobotArm"/>
<bootstrap thing="wpLaserGun"></bootstrap>
</thing>
I tried adding Helper.Shadow to the wpLaserGun bootstrap, but it didn't help.
Code:
<thing id="modLaserArm" name="Laser Emitter" description="You can cut objects or make ranged attacks using a laser." compset="RobotMod">
<fieldval field="modNamePrefix" value="Laser"/>
<tag group="ItemModCat" tag="RobotArm"/>
<bootstrap thing="wpLaserGun">
[B]<autotag group="Helper" tag="Shadow"/>[/B]
</bootstrap>
</thing>
Code:
<component
id="Robot"
name="Robot Body Part"
autocompset="no">
<identity group="RobotPart"/>
<identity group="RobotHasPart"/>
<shadow target="hero">Helper.Shadow</shadow>
</component>
Code:
<component
id="RobotMod"
name="Robot Modification"
autocompset="no">
<identity group="RobotMod"/>
<shadow target="hero">Helper.Shadow</shadow>
</component>
So, I appear to have:
Hero
* Robot Arm
** modLaserArm
** wpLaserGun
when I'm looking to have:
Hero
* Robot Arm
** modLaserArm
* wpLaserGun
Any thoughts on what may be missing?