Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: playmakertester on October 11, 2020, 03:57:02 AM

Title: How to put a game object in the global Array variable in the hierarchy
Post by: playmakertester on October 11, 2020, 03:57:02 AM
Is it possible for Playmaker to specify a game object on the hierarchy that is not prefabbed as a Game object to be included in Array?

I've been trying, but it looks like only game objects in the Asset can be put into Array, which is a global variable.
Title: Re: How to put a game object in the global Array variable in the hierarchy
Post by: heavygunner on October 11, 2020, 06:06:15 AM
Add "Get Owner" and save it on a variables. Then, use Array add
Title: Re: How to put a game object in the global Array variable in the hierarchy
Post by: playmakertester on October 11, 2020, 12:20:55 PM
Thanks heavygunner!

Let me try!
Title: Re: How to put a game object in the global Array variable in the hierarchy
Post by: playmakertester on October 14, 2020, 09:07:46 AM
I'm looking at the Get owner help, but I'm not sure how to use it now.

Gets the Game Object that owns the FSM and stores it in a game object variable.

If you have a video or article that explains how to use this, please let me know.
Title: Re: How to put a game object in the global Array variable in the hierarchy
Post by: djaydino on October 20, 2020, 11:26:43 AM
Hi.
Its probably better to use Array Maker (https://hutonggames.fogbugz.com/default.asp?W715) as its easier to reference.