playMaker

Author Topic: Random Item Generator[SOLVED]  (Read 2281 times)

gearedgeek

  • Playmaker Newbie
  • *
  • Posts: 30
Random Item Generator[SOLVED]
« on: November 20, 2016, 07:15:09 AM »
I have searched the forums for this but I haven't found any success yet.

Anyway, I'm looking create a item generator where a player can destroy a GameObject and a random item will be spawned using playmaker. Is there any tutorials or guides that anyone knows?

Thanks
« Last Edit: November 21, 2016, 02:37:43 AM by jeanfabre »

Xenocalypse

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Random Item Generator
« Reply #1 on: November 20, 2016, 10:45:25 AM »
You can Create A Random game object by Using the Action : Select Random Game Object, than you choose how many Objects you want to choose from, and give the Weight (Chance) to choose it for each Object.
You Store That in A Game Object. After That You Just Create A Game Object with the Action create  Object and choose the Stored game Object for that.
That´s how i gone make it.

Hope it Helps
Regards Xeno

gearedgeek

  • Playmaker Newbie
  • *
  • Posts: 30
Re: Random Item Generator
« Reply #2 on: November 20, 2016, 10:21:04 PM »
How would you tell it to spawn where that destroyed GameObject was?

EDIT:
I figured it out. I just needed to drag and drop the parent prefab into the spawn point. It's working now.

Thank you for the help.
« Last Edit: November 21, 2016, 02:28:52 AM by gearedgeek »