We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b17e53e commit 324e0aeCopy full SHA for 324e0ae
[gameplay]/glue_new/logic/SVehicleAttach.lua
@@ -162,6 +162,13 @@ local function detachElementsOnVehicleDestroy()
162
end
163
addEventHandler("onElementDestroy", root, detachElementsOnVehicleDestroy)
164
165
+local function detachElementsOnVehicleExplode()
166
+ detachAttachedVehicleElements(source)
167
+end
168
+if (GLUE_DETACH_ON_VEHICLE_EXPLOSION) then
169
+ addEventHandler("onVehicleExplode", root, detachElementsOnVehicleExplode)
170
171
+
172
local function detachElementsOnResourceStop()
173
local vehiclesTable = getElementsByType("vehicle")
174
0 commit comments