MCPcopy Create free account
hub / github.com/carbonengine/trinity / Start

Method Start

trinity/Controllers/Actions/Tr2ActionSetAttenuationScaling.cpp:27–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27void Tr2ActionSetAttenuationScaling::Start( ITr2ActionController& controller )
28{
29 if( ITr2SoundEmitterOwnerPtr emitters = BlueCastPtr( controller.GetOwner() ) )
30 {
31 if( auto emitter = emitters->FindSoundEmitter( m_emitterName.c_str() ) )
32 {
33 emitter->SetAttenuationScalingFactor( GetScalingFactor() );
34 }
35 }
36}
37
38void Tr2ActionSetAttenuationScaling::StartWithController( ITr2ActionController* controller )
39{

Callers

nothing calls this directly

Calls 2

GetOwnerMethod · 0.45
FindSoundEmitterMethod · 0.45

Tested by

no test coverage detected