Page 1 of 1
Attach <piece> to <piece>
Posted: 22 Feb 2008, 09:55
by Guessmyname
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>;
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 10:15
by lurker
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.
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 14:18
by rattle
Yeah, can't have new keywords.
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 14:21
by lurker
Not if you're such a lazy bum you can't hex edit machine code.
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 15:53
by rattle
Don't you have a compiler to finish? :P
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 16:21
by lurker
I have transcended compilation.
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 16:26
by AF
lua ftw
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 17:46
by rattle
Luargh!
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 18:48
by Argh
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.
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 18:54
by lurker
Yeah, elmo resolution updated every frame isn't that great for adding pieces.
Re: Attach <piece> to <piece>
Posted: 22 Feb 2008, 19:54
by KDR_11k
Spring.GetUnitPieceMatrix says hello.
Re: Attach <piece> to <piece>
Posted: 23 Feb 2008, 18:05
by AF
Argh, I wasn't talking about lua talking to cob, rather, lua talking to lua.