Jump to content


Photo

Attaching a one 'GameObject' to another?

solved!

  • Please log in to reply
2 replies to this topic

#1 Madin

Madin

    title available

  • Hosted
  • 686 posts

Posted 22 September 2013 - 02:27 AM

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?


Edited by Madin, 24 September 2013 - 03:42 AM.


#2 Phil

Phil

    Force Majeure

  • Network Leaders
  • 7,976 posts
  • Location:Switzerland
  • Projects:Revora, C&C:Online
  •  Thought Police
  • Division:Revora
  • Job:Network Leader
  • Donated
  • Association

Posted 22 September 2013 - 01:17 PM

Use one of the Contain modules with an InitialPayload?


revorapresident.jpg
My Political Compass

Sieben Elefanten hatte Herr Dschin
Und da war dann noch der achte.
Sieben waren wild und der achte war zahm
Und der achte war's, der sie bewachte.


#3 Madin

Madin

    title available

  • Hosted
  • 686 posts

Posted 22 September 2013 - 02:34 PM

That is an interesting idea, certainly something to consider, thanks!

:closedeyes:






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users