Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nhe1 on May 11, 2018, 03:22:11 PM

Title: Get Random Object not working with inactive objects? [SOLVED]
Post by: nhe1 on May 11, 2018, 03:22:11 PM
I have a manager that selects random objects with a specific tag. However it is not returning anything. This objects are tagged as "enemy" and are inactive when i start the game. I wanted to select from the random set of enemies that are inactive and set them to active. Any workaround on this?
Title: Re: Get Random Object not working with inactive objects?
Post by: ... on May 11, 2018, 04:50:00 PM
You can't find an inactive object. I had a similar issue, i resolved it by adding an active parent object (child is inactive) with transform only with the appropriate tag.
Title: Re: Get Random Object not working with inactive objects?
Post by: nhe1 on May 11, 2018, 05:03:50 PM
thanks this worked! I parented it on an active object  ;)
Title: Re: Get Random Object not working with inactive objects? [SOLVED]
Post by: ... on May 12, 2018, 04:45:59 AM
Glad it works out for you :)