Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Coln1x on February 24, 2014, 08:12:14 AM

Title: Creat object from Random objects (SOLVED)
Post by: Coln1x on February 24, 2014, 08:12:14 AM
Hello, everyone im new around my name is Bernardo my pleasure.
i am a newbie in coding just to make it even clear heeh :D.

o had the pleasure to try out playmaker and its amazing :D for someone without the knowledge of cod to make something happen, yet there's always something to learn about :D.

so i was trying to spawn an object and i came across Create object using a prefab, still it only creates 1 kinda of object what if i have like 4 or more objects i would like to choose from?

already searched but didnt get anything.


Title: Re: Creat object from Random objects
Post by: Lane on February 24, 2014, 08:27:49 AM
Welcome =)

You can use the Select Random Game Object action to pick a random one from a list, then put it in a variable, then use Create Object to spawn from that.
Title: Re: Creat object from Random objects
Post by: Coln1x on February 24, 2014, 09:12:27 AM
knowledge is a bless, worked like a charm :D

thanks a lot.

thumbs up