In 5.5 version, I could execute a trigger smth like this
But, in 5.6, no matter what I tried, I can't execute a trigger from code on some entity.
Code: Select all
CryAudio::ControlId nTriggerID = CryAudio::StringToId("Play_SoftHit");
if (nTriggerID != 0)
CryAudio::SRequestUserData const userData(CryAudio::ERequestFlags::DoneCallbackOnExternalThread | CryAudio::ERequestFlags::CallbackOnExternalOrCallingThread, this);
m_pIEntityAudioComponent->ExecuteTrigger(nTriggerID, m_audioProxyID, userData);
Can someone, please, tell, what have changed and what is a new correct way of doing this?