//
// GJEffectManager::createFollowCommand from 0x1002e0cc0 to 0x1002e0d8d (205 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::triggerFollowCommand @ 0x1000f1ba6
// > EffectGameObject::triggerObject @ 0x1001b9b5a
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GJEffectManager::createFollowCommand(
GJEffectManager *a1,
float a2,
float a3,
float a4,
int a5,
int a6,
int a7,
int a8)
{
GroupCommandObject2 *end; // r13
GroupCommandObject2 *v11; // r13
end = a1->m_unkVector560.__end_;
if ( end >= a1->m_unkVector560.__end_cap_.__value_ )
{
v11 = (GroupCommandObject2 *)sub_1002F0910(&a1->m_unkVector560, *(double *)&a2, *(double *)&a3, *(double *)&a4);
}
else
{
sub_1004ECE70(a1->m_unkVector560.__end_, *(double *)&a2, *(double *)&a3, *(double *)&a4);
v11 = end + 1;
a1->m_unkVector560.__end_ = v11;
}
a1->m_unkVector560.__end_ = v11;
GroupCommandObject2::reset(v11 - 1);
v11[-1].m_targetGroupID = a5;
v11[-1].m_centerGroupID = a6;
v11[-1].m_triggerUniqueID = a7;
v11[-1].m_controlID = a8;
GroupCommandObject2::runFollowCommand(v11 - 1, a2, a3, a4);
}