File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
Base.rte/Devices/Explosives/RemoteExplosive
Coalition.rte/Devices/Explosives/TimedExplosive Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,9 @@ function Create(self)
10
10
end
11
11
12
12
function ThreadedUpdate (self )
13
- if self .ID ~= self .RootID then
14
- local actor = MovableMan :GetMOFromID (self .RootID );
15
- if MovableMan :IsActor (actor ) then
16
- self .alliedTeam = ToActor (actor ).Team ;
17
- end
13
+ local parent = self :GetRootParent ();
14
+ if MovableMan :IsActor (parent ) then
15
+ self .alliedTeam = ToActor (parent ).Team ;
18
16
end
19
17
if self .Magazine then
20
18
if self :IsActivated () then
Original file line number Diff line number Diff line change 1
1
function Update (self )
2
- if self :IsActivated () and self . ID == self . RootID then
2
+ if self :IsActivated () and not self : IsAttached () then
3
3
local explosive = CreateMOSRotating (" Timed Explosive Active" );
4
4
explosive .Pos = self .Pos ;
5
5
explosive .Vel = self .Vel ;
You can’t perform that action at this time.
0 commit comments