1548 {
1549 vector position = vector.Zero;
1550 int pivotIndex = -1;
1551
1553 if (selectionName != "")
1554 {
1555 position = GetSelectionBasePositionLS(selectionName);
1556
1557 int level = GetViewGeometryLevel();
1558
1559 array<int> pivots = new array<int>();
1560
1561 pivots.Clear();
1562 GetBonePivotsForAnimationSource(level, animSource, pivots);
1563
1564 if (pivots.Count())
1565 {
1566 pivotIndex = pivots[0];
1567 }
1568 }
1569
1571
1572 EffectSound sound = new EffectSound();
1573
1574 PlayerBase player;
1576 {
1577 if (player.IsCameraInsideVehicle())
1578 {
1580 }
1581 }
1582
1585 sound.SetPosition(ModelToWorld(position));
1586 sound.SetLocalPosition(position);
1588
1589 return sound;
1590 }
string GetSelectionFromAnimSource(string animSource)
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.
proto native CGame GetGame()