CM2Model::Attach
function · models · orchestration
- Address
0x712f70· 168 bytes, up to0x713017- Meaning
- Attaches an instance to a parent at an attachment id
- Confidence
- verified, proof one
- Finding
- models/model#attachments
Finding: Attachments in models: the instance
Attach(parent, id) takes an instance off the animate list, stores the parent and id, resolves
the id to the parent's attachment index (0xffff while the parent loads) and links it first among
the parent's children. An attached instance animates through its parent. GetAttachmentPosition
transforms the attachment's offset by its bone matrix and the scene matrix.
The derivation is in the doc.
Callers 19
- SetCreateBackground glue
- BuildCreateCharacter glue
- AttachKitEffect glue
- BuildCharSelectModel glue
- AttachItemVisuals charactermodel
- AttachItemModelFile charactermodel
- CGCorpse_C::AddLootSparkle objectlayer
- CGPlayer_C::OnVisibleItemChanged objectlayer
- CGGameObject_C::ApplyArtKit objectlayer
- CGUnit_C::UpdateSheatheForAnimation objectlayer
- CGUnit_C::AttachQuestMarker objectlayer
- CGUnit_C::Mount objectlayer
- CGUnit_C::MoveHandItem objectlayer
- CGUnit_C::AttachHandItem objectlayer
- CGUnit_C::SetAmmoDisplay objectlayer
- CMissile::StickInUnit objectlayer
- UpdateSpellEffectObject objectlayer
- OnCombatModelEvent objectlayer
- CM2Model::Initialize models
Callees 3
- M2LookupIndex models
- CM2Model::AddRef models
- CM2Model::SetAnimated models
Calls and jumps by a bare address, from tables/calls.tsv.