//
// SpawnTriggerGameObject::triggerObject from 0x10038ebe8 to 0x10038ec8c (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007f8600
//
// 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
//
void __fastcall SpawnTriggerGameObject::triggerObject(
SpawnTriggerGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
float m_spawnDelay; // s8
float v7; // s0
float v8; // s0
m_spawnDelay = a1->m_spawnDelay;
if ( a2 && a1->m_delayRange != 0.0 && (!a2->m_isEditor || a2->m_playbackMode == Playing) )
{
v7 = m_spawnDelay + (float)(GameToolbox::fast_rand_minus1_1() * a1->m_delayRange);
if ( v7 >= 0.0 )
m_spawnDelay = v7;
else
m_spawnDelay = 0.0;
}
v8 = m_spawnDelay - a1->m_currentDelay;
GJBaseGameLayer::spawnGroupTriggered(
a2,
a1->m_targetGroupID,
v8,
a1->m_spawnOrdered,
&a1->m_remapKeys,
a1->m_uniqueID,
a1->m_controlID);
a1->m_currentDelay = 0.0;
}