playMaker

Author Topic: Get Child with Failure Event  (Read 2889 times)

bkups2003

  • Playmaker Newbie
  • *
  • Posts: 49
Get Child with Failure Event
« on: October 23, 2013, 11:13:54 PM »
Is it possible to have a modified Get Child action with a failure event? I use some GameObjects as pools and would like to set it up so that if the pool is not big enough and there is no object left for use in the pool, it will instantiate one. Ie. Instantiate that object on failure.

An alternative is to just add and remove items from an array as the array has a failure event function, however if a pool can do it all by itself without an array, then i would ofcourse prefer this easier and more refined choice.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Get Child with Failure Event
« Reply #1 on: October 24, 2013, 02:40:56 AM »
Hi,

 What pool system are you using? they should provide access to that kind of information actually.

I made that action here:

http://hutonggames.com/playmakerforum/index.php?topic=5272.0

Bye,

 Jean

bkups2003

  • Playmaker Newbie
  • *
  • Posts: 49
Re: Get Child with Failure Event
« Reply #2 on: October 24, 2013, 04:05:53 AM »
Thanks so much.

I'm just making my own simple pool system.