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)
18
18
if self .Magazine then
19
19
if self .inventorySwapTimer :IsPastSimTimeLimit () then
20
20
if self .activeSound then
21
- AudioMan : StopSound ( self .activeSound );
21
+ self .activeSound : Stop ( );
22
22
self .activeSound = nil ;
23
23
end
24
24
self .charge = 0 ;
@@ -50,8 +50,8 @@ function Update(self)
50
50
self :Deactivate ();
51
51
52
52
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 ;
55
55
else
56
56
self .activeSound :Play (self .Pos );
57
57
end
@@ -89,13 +89,13 @@ function Update(self)
89
89
MovableMan :AddParticle (par );
90
90
91
91
self .charge = 0 ;
92
- AudioMan : StopSound ( self .activeSound );
92
+ self .activeSound . stop ( );
93
93
self .activeSound = nil ;
94
94
end
95
95
end
96
96
function Destroy (self )
97
97
if self .activeSound then
98
- AudioMan : StopSound ( self .activeSound );
98
+ self .activeSound : Stop ( );
99
99
self .activeSound = nil ;
100
100
end
101
101
end
You can’t perform that action at this time.
0 commit comments