Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: PolyMad on June 02, 2016, 05:43:01 PM

Title: Template problem
Post by: PolyMad on June 02, 2016, 05:43:01 PM
I would like to use templates, but I need to get the self name of an object.
How do you do that? At the moment, I have a variable with an object strapped onto it, but of course this can't work with templates: it keeps using data from THAT object for all the objects, and not from the owners.
Title: Re: Template problem
Post by: mdotstrange on June 02, 2016, 05:54:36 PM
I think that it might be the "Get Host Info" action thats on Ecosystem that you want- when you use it in a template it gives you the game object thats running the template and the name of the fsm the template is in-
Title: Re: Template problem
Post by: Alex Chouls on June 02, 2016, 07:29:56 PM
You can also use the Get Owner action that ships with Playmaker.
And then Get Name to get the name.

Not familiar with Get Host Info myself but that sounds like it could also work...
Title: Re: Template problem
Post by: Zeldag on June 03, 2016, 08:40:10 AM
Lol I almost said that too, Alex. But then I saw Mdot's answer and thought it was better, so I deleted mine. Haha glad to know I was not all wrong :)