Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Taco_man121 on April 03, 2016, 11:41:20 AM

Title: created game objects like (clone) being parented when its created
Post by: Taco_man121 on April 03, 2016, 11:41:20 AM
so lets say i have a character whit a hand gun aim animation
and i have a weapon as separate game object (hand gun)
so what i mean is there a way to create the hand gun from a prefab and parent it to he characer

 
                                   any help?
Title: Re: created game objects like (clone) being parented when its created
Post by: Chizzler on April 03, 2016, 08:05:41 PM
Store the character as a variable "go_Character"

Use "Create Object" to spawn your gun and store it as a variable "go_Gun"

Use "Set Parent" on "go_Gun" setting the parent as "go_Character"