Basically, a bos/cob command that will allow to attach a piece in a model to another - in effect changing the model's hierarchy on the fly.
Preferably used something like this?
Attach <piece1> to <piece2>;
Attach <piece> to <piece>
Moderator: Moderators
Re: Attach <piece> to <piece>
1. How does it know where on piece2 to put the origin of piece1?
2. Hope you don't plan to use scriptor for this.
2. Hope you don't plan to use scriptor for this.
Re: Attach <piece> to <piece>
Yeah, can't have new keywords.
Re: Attach <piece> to <piece>
Not if you're such a lazy bum you can't hex edit machine code.
Re: Attach <piece> to <piece>
Don't you have a compiler to finish? :P
Re: Attach <piece> to <piece>
I have transcended compilation.
Re: Attach <piece> to <piece>
Luargh!
Re: Attach <piece> to <piece>
I don't think this can be solved with LUA, until LUA can get the exact positions of a given Piece.
We need a way in COB to GET unpacked coordinates, so that we can finally get the full XYZ without having to unpack it with COB (which is inaccurate and very time-consuming). My understanding is that work is ongoing to get these values, at least in LUA, but I hope it can be done on both sides, this is a big deal, as COB's most major flaw, imo, is that it was designed with angles and internal distances in mind, but has only the crudest ways of "reacting" to the external world.
We need a way in COB to GET unpacked coordinates, so that we can finally get the full XYZ without having to unpack it with COB (which is inaccurate and very time-consuming). My understanding is that work is ongoing to get these values, at least in LUA, but I hope it can be done on both sides, this is a big deal, as COB's most major flaw, imo, is that it was designed with angles and internal distances in mind, but has only the crudest ways of "reacting" to the external world.
Re: Attach <piece> to <piece>
Yeah, elmo resolution updated every frame isn't that great for adding pieces.
Re: Attach <piece> to <piece>
Spring.GetUnitPieceMatrix says hello.
Re: Attach <piece> to <piece>
Argh, I wasn't talking about lua talking to cob, rather, lua talking to lua.