This repository was archived by the owner on Jan 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Dummy.rte/Devices/Weapons/Destroyer Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function Update(self)
1818 if self .Magazine then
1919 if self .inventorySwapTimer :IsPastSimTimeLimit () then
2020 if self .activeSound then
21- AudioMan : StopSound ( self .activeSound );
21+ self .activeSound : Stop ( );
2222 self .activeSound = nil ;
2323 end
2424 self .charge = 0 ;
@@ -50,8 +50,8 @@ function Update(self)
5050 self :Deactivate ();
5151
5252 if self .activeSound :IsBeingPlayed () then
53- AudioMan : SetSoundPosition ( self .activeSound , self .Pos ) ;
54- AudioMan : SetSoundPitch ( self .activeSound , self .charge ) ;
53+ self .activeSound . Pos = self .Pos ;
54+ self .activeSound . Pitch = self .charge ;
5555 else
5656 self .activeSound :Play (self .Pos );
5757 end
@@ -89,13 +89,13 @@ function Update(self)
8989 MovableMan :AddParticle (par );
9090
9191 self .charge = 0 ;
92- AudioMan : StopSound ( self .activeSound );
92+ self .activeSound . stop ( );
9393 self .activeSound = nil ;
9494 end
9595end
9696function Destroy (self )
9797 if self .activeSound then
98- AudioMan : StopSound ( self .activeSound );
98+ self .activeSound : Stop ( );
9999 self .activeSound = nil ;
100100 end
101101end
You can’t perform that action at this time.
0 commit comments