//
// GJEffectManager::createPlayerFollowCommand from 0x1002cb840 to 0x1002cb913 (211 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::triggerPlayerFollowCommand @ 0x1000c54ee
// > EffectGameObject::triggerObject @ 0x10019a6dd
//
// 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::createPlayerFollowCommand(
__int64 a1,
unsigned int a2,
int a3,
int a4,
int a5,
float a6,
float a7,
float a8,
float a9)
{
unsigned __int64 v12; // r13
__int64 v13; // r13
v12 = *(_QWORD *)(a1 + 1240);
if ( v12 >= *(_QWORD *)(a1 + 1248) )
{
v13 = sub_1002DB3D0(a1 + 1232);
}
else
{
sub_1004E7A00(*(_QWORD *)(a1 + 1240));
v13 = v12 + 520;
*(_QWORD *)(a1 + 1240) = v13;
}
*(_QWORD *)(a1 + 1240) = v13;
GroupCommandObject2::reset(v13 - 520);
*(_DWORD *)(v13 - 480) = a3;
*(_DWORD *)(v13 - 176) = a4;
*(_DWORD *)(v13 - 172) = a5;
return GroupCommandObject2::runPlayerFollowCommand(v13 - 520, a2, a6, a7, a8, a9);
}