playMaker

Author Topic: create empty, set name, set tag set parent - all at once?  (Read 2168 times)

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
create empty, set name, set tag set parent - all at once?
« on: January 15, 2017, 06:20:40 PM »
Instead of having to copy and paste a pile of actions all day long to do different things, I need an action that does all these things at once:

create an empty game object
set its name
optionally, set its tag
set its parent

having a single action that could do all these things at once, would make my life easier, but I understand it's really specific and that we can already do these things individually. it would just clean up my code and streamline my process. if anyone is willing to do it (or hell, create a youtube tutorial showing us non-coders how to combine existing actions into a single new playmaker action) it would be much appreciated.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: create empty, set name, set tag set parent - all at once?
« Reply #1 on: January 16, 2017, 01:11:34 AM »
Hi,

 Make an Fsm Template then :) that's a perfect fit for this kind of routines.

 Bye,

 Jean

westingtyler

  • Sr. Member
  • ****
  • Posts: 277
    • My Video Game Projects Web Site
Re: create empty, set name, set tag set parent - all at once?
« Reply #2 on: January 21, 2017, 08:39:57 PM »
oooh. are you saying I can make a template, call it in an event in an object in the scene, and it will run just those actions, then return to the main fsm?

so if my main fsm has a string valled 'biscuits' , and then I run a template with a string called biscuits, will it affect the variables in the parent fsm?

is there any extra lag from running an fsm inside of an fsm?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: create empty, set name, set tag set parent - all at once?
« Reply #3 on: January 23, 2017, 01:13:13 AM »
Hi,

 no lag no, none that I am aware of.

 Bye,

 Jean