| 31 | } |
| 32 | |
| 33 | Fvector 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 | |
| 46 | void CScriptSound::Play(CScriptGameObject* object, float delay, int flags) |
| 47 | { |
no test coverage detected