Merge remote-tracking branch 'origin/develop' into branch

This commit is contained in:
Applevangelist
2024-10-26 18:46:39 +02:00
2 changed files with 31 additions and 20 deletions

View File

@@ -899,10 +899,14 @@ function CONTROLLABLE:CommandEPLRS( SwitchOnOff, Delay )
id = 'EPLRS',
params = {
value = SwitchOnOff,
groupId = self:GetID(),
groupId = nil,
},
}
if self:IsGround() then
CommandEPLRS.params.groupId = self:GetID()
end
if Delay and Delay > 0 then
SCHEDULER:New( nil, self.CommandEPLRS, { self, SwitchOnOff }, Delay )
else
@@ -1006,10 +1010,13 @@ function CONTROLLABLE:TaskEPLRS( SwitchOnOff, idx )
id = 'EPLRS',
params = {
value = SwitchOnOff,
groupId = self:GetID(),
groupId = nil,
},
}
if self:IsGround() then
CommandEPLRS.params.groupId = self:GetID()
end
return self:TaskWrappedAction( CommandEPLRS, idx or 1 )
end