playMaker

Poll

how can i make an object that is created as a clone to be parented to another object

don't know
0 (0%)
don't kow
0 (0%)

Total Members Voted: 0

Author Topic: created game objects like (clone) being parented when its created  (Read 1234 times)

Taco_man121

  • Playmaker Newbie
  • *
  • Posts: 3
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?

Chizzler

  • Junior Playmaker
  • **
  • Posts: 67
Re: created game objects like (clone) being parented when its created
« Reply #1 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"
« Last Edit: April 03, 2016, 08:38:55 PM by Chizzler »