//
// GJEffectManager::createFollowCommand from 0x1002cb760 to 0x1002cb82d (205 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::triggerFollowCommand @ 0x1000c5496
// > EffectGameObject::triggerObject @ 0x10019a1ca
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:28:10 +0000
//
__int64 __fastcall GJEffectManager::createFollowCommand(
__int64 a1,
int a2,
int a3,
int a4,
int a5,
float a6,
float a7,
float a8)
{
unsigned __int64 v10; // r13
__int64 v11; // r13
v10 = *(_QWORD *)(a1 + 1240);
if ( v10 >= *(_QWORD *)(a1 + 1248) )
{
v11 = sub_1002DB3D0(a1 + 1232);
}
else
{
sub_1004E7A00(*(_QWORD *)(a1 + 1240));
v11 = v10 + 520;
*(_QWORD *)(a1 + 1240) = v11;
}
*(_QWORD *)(a1 + 1240) = v11;
GroupCommandObject2::reset(v11 - 520);
*(_DWORD *)(v11 - 480) = a2;
*(_DWORD *)(v11 - 476) = a3;
*(_DWORD *)(v11 - 176) = a4;
*(_DWORD *)(v11 - 172) = a5;
return GroupCommandObject2::runFollowCommand(v11 - 520, a6, a7, a8);
}