Marco Bartoli
WadTool Slot Number: 231
				
					TEN.Objects.ObjID.MARCO_BARTOLI
				
			

Setup Instructions

  • Trigger Marco, and he will start to transform.
  • Place a HEAVY trigger underneath the sector where Marco is, and he will trigger it once transformed.
Transformation is made up of three objects and play in sequence:
SPHERE_OF_DOOM
SPHERE_OF_DOOM2
SPHERE_OF_DOOM3
These can be modified via setting the ItemFlags.
The download also contains the Dragon enemy, which can be used in combination.

Additional Lua

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