Data Realms Fan Forums http://45.55.195.193/ |
|
Attachables on terrain objects (like bunker modules) http://45.55.195.193/viewtopic.php?f=1&t=16650 |
Page 1 of 1 |
Author: | deathbringer [ Fri Sep 25, 2009 2:26 am ] |
Post subject: | Attachables on terrain objects (like bunker modules) |
The title says it all. I can't seem to be able to attach objects to bunker modules yet I remember seeing that vent-like bunker module that had an attached door on it that we could break. Is there any way I can attach things on bunker modules without having CC saying that he cant match property? Edit : Here is what I'm trying to do ![]() The bottom thing with the girders is the bunker module, the brick parts are the attachables and the lil bricks and stuff are what the attachables should gib into. |
Author: | Duh102 [ Fri Sep 25, 2009 2:37 am ] |
Post subject: | Re: Attachables on terrain objects (like bunker modules) |
AddChildObject. Look at the doors in Base.rte for how to do it exactly. |
Author: | Azukki [ Fri Sep 25, 2009 2:41 am ] |
Post subject: | Re: Attachables on terrain objects (like bunker modules) |
Well, you can't attach it, but I'm fairly certain you can make a pinned MOSRotating object, and then add that as a child object of the bunker module. Go look at the code for the door bunker modules, and you'll probably be able to figure it out from there. Okay I could have sworn there were no replies when I wrote this and it usually interrupts adding a post when someone else posts first, but whatever. |
Author: | Grif [ Fri Sep 25, 2009 2:42 am ] |
Post subject: | Re: Attachables on terrain objects (like bunker modules) |
Attachables themselves are an MO-only object. For what you want, you're probably going to want MOSRotatings, which act as generic MOs with useful properties (picture TDExplosives that aren't thrown) |
Author: | deathbringer [ Fri Sep 25, 2009 2:50 am ] |
Post subject: | Re: Attachables on terrain objects (like bunker modules) |
Ok I got that child object thingy working, now is there some way to put my attachables OVER the terrain? Now its kinda UNDER it >_> |
Author: | Grif [ Fri Sep 25, 2009 3:05 am ] |
Post subject: | Re: Attachables on terrain objects (like bunker modules) |
function Create(self) self:EraseFromTerrain(); end |
Author: | deathbringer [ Fri Sep 25, 2009 3:13 am ] |
Post subject: | Re: Attachables on terrain objects (like bunker modules) |
Grif wrote: function Create(self) self:EraseFromTerrain(); end Not working. I need to stick this lua to the attachable or the bunkermodule? |
Author: | Duh102 [ Fri Sep 25, 2009 3:13 am ] |
Post subject: | Re: Attachables on terrain objects (like bunker modules) |
The child object. |
Author: | deathbringer [ Fri Sep 25, 2009 3:23 am ] |
Post subject: | Re: Attachables on terrain objects (like bunker modules) |
So it doesn't work. Edit : Nvm that, its working now. I switched the attachable to a mosrotating like grif said and now it works perfectly. Thanks a lot! |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |