Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2643

Help and Support • Re: Dino Torch Direction

$
0
0
this has to be done through scripting. create a file called luna.lua in your level folder (if you only want to apply it to a single level) or in your episode folder (if you want it to apply to a whole episode), open it in a text editor, and place this inside:

Code:

local FLAME_DIRECTION = 0 -- 0 will make it shoot sideways, change this to 1 to only make it shoot upfunction onTick()    for _, v in NPC.iterate(382) do        v.ai3 = FLAME_DIRECTION    endend
note that this will apply to every dino torch inside a level/episode (depending on where you put the lua file)
if you want to apply it to a specific set of dino torches, that's going to be a little more complex. namely, for every dino torch you want to lock the direction of, you'll have to right click it, click "edit raw user data", and place this inside (again, 0 is for sideways, 1 is for up):

Code:

{    "flameDirection": 0}
then, instead of the code in the lua file from earlier, you'd use something like this:

Code:

function onTick()    for _, v in NPC.iterate(382) do        if(v.data._settings and v.data._settings.flameDirection) then            v.ai3 = v.data._settings.flameDirection        end    endend

Statistics: Posted by deice — Sat Sep 14, 2024 6:11 am



Viewing all articles
Browse latest Browse all 2643

Trending Articles