MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / GetPosition

Method GetPosition

ogsr_engine/xrGame/script_sound.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33Fvector CScriptSound::GetPosition() const
34{
35 VERIFY(m_sound._handle());
36 const CSound_params* l_tpSoundParams = m_sound.get_params();
37 if (l_tpSoundParams)
38 return (l_tpSoundParams->position);
39 else
40 {
41 ai().script_engine().script_log(ScriptStorage::eLuaMessageTypeError, "Sound was not launched, can't get position!");
42 return (Fvector().set(0, 0, 0));
43 }
44}
45
46void CScriptSound::Play(CScriptGameObject* object, float delay, int flags)
47{

Callers 5

GetCharacterPositionMethod · 0.45
g_PhysicsMethod · 0.45
move_along_pathMethod · 0.45
get_StateMethod · 0.45
get_StateMethod · 0.45

Calls 4

_handleMethod · 0.80
script_logMethod · 0.80
get_paramsMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected