--First, we will create a function for the amendments we want for Marco Bartolli's transformation:
function marcoTransform()
local marco = GetMoveableByName("marco_bartoli_410") -- Get which Marco Bartolli object you are reffering to.
-- The next section is where we are defining 3 different values. The explosion timings are measured in frames:
local explosion1 = 10 -- Explosion 1
local explosion2 = 100 -- Explosion 2
local explosion3 = 120 -- Explosion 3
-- Finally we will change the code to amend for our own timings.
marco:SetItemFlags(explosion1,1)
marco:SetItemFlags(explosion2,2)
marco:SetItemFlags(explosion3,3)
end
-- Now we have the function, we can ask the engine to run it when the player loads the level.
LevelFuncs.OnStart = function()
marcoTransform()
end
-- code: Stranger1992. 19/03/24