Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: gearedgeek on November 20, 2016, 07:15:09 AM

Title: Random Item Generator[SOLVED]
Post by: gearedgeek 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
Title: Re: Random Item Generator
Post by: Xenocalypse 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
Title: Re: Random Item Generator
Post by: gearedgeek 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.