playMaker

Author Topic: Possible to change tag of parent?  (Read 1370 times)

beowulfkaine

  • Playmaker Newbie
  • *
  • Posts: 47
Possible to change tag of parent?
« on: July 08, 2017, 05:06:32 PM »
I was wondering if this is possible:

I have an arrow that has a bunch of varieties within its hierarchy, I cannot make these into separate prefabs for various reasons.  I can enable and disable the sub-arrows but I also need the parent tag that holds all the arrows to change.

Example:

Ice arrow is enabled, Parent Tag changes to Ice Arrow
Fire arrow is enabled, Parent tag is changed to Fire Arrow.

I also need this to be on an individual basis, so the tag cannot change on the entire prefab otherwise the arrows would change type in mid-flight.

Is this possible?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Possible to change tag of parent?
« Reply #1 on: July 09, 2017, 12:59:35 AM »
Hi,
If you need to get the parent, you can use the 'Get Parent' Action.

To change the Tag you can use the 'Set Tag' Action.