278 {
280 int pivotIndex = -1;
281
282 string selectionName = GetSelectionFromAnimSource(animSource);
283 if (selectionName != "")
284 {
285 position = GetSelectionBasePositionLS(selectionName);
286
287 int level = GetViewGeometryLevel();
288
290
291 pivots.Clear();
292 GetBonePivotsForAnimationSource(level, animSource, pivots);
293
294 if (pivots.Count())
295 {
296 pivotIndex = pivots[0];
297 }
298 }
299
302
305 sound.SetPosition(ModelToWorld(
position));
308
309 return sound;
310 }
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
void SetSoundWaveKind(WaveKind wave_kind)
Set WaveKind for the sound.
override void SetParent(Object parent_obj, int pivot)
Set parent for the sound to follow.
Wrapper class for managing sound through SEffectManager.
Result for an object found in CGame.IsBoxCollidingGeometryProxy.