Attaching a one 'GameObject' to an...
Madin 22 Sep 2013
I am wondering how I would go about attaching one object to another object?
I will give further detail of my plan: I have a static base defence that I would like to spawn an object that will attach to a specific bone on the base defence.
This object will be a dummy object (no visible art), that will carry a couple of 'KindOf' that are needed, but cannot be on the parent 'GameObject' (specifically I am looking for a carrier of the 'BEAM_TARGET_REFLECTOR' so I can get around hard coded issues, specifically that the beam is hard coded to target the base geometry of the object which has the 'BEAM_TARGET_REFLECTOR' KindOf).
It is important that the dummy object is attached to the bone I specify, so I do not think I can use a simple 'SlavedAttachUpdate'.
I know that others have got buildings that can get objects attached to them, any ideas?
I will give further detail of my plan: I have a static base defence that I would like to spawn an object that will attach to a specific bone on the base defence.
This object will be a dummy object (no visible art), that will carry a couple of 'KindOf' that are needed, but cannot be on the parent 'GameObject' (specifically I am looking for a carrier of the 'BEAM_TARGET_REFLECTOR' so I can get around hard coded issues, specifically that the beam is hard coded to target the base geometry of the object which has the 'BEAM_TARGET_REFLECTOR' KindOf).
It is important that the dummy object is attached to the bone I specify, so I do not think I can use a simple 'SlavedAttachUpdate'.
I know that others have got buildings that can get objects attached to them, any ideas?