make other npcs follow lineguides

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

hEllO tHerE
Swooper
Swooper
Posts: 62
Joined: Mon Jul 22, 2019 4:53 pm
Flair: 20 MSD Etterna Player
Pronouns: he/him

make other npcs follow lineguides

Postby hEllO tHerE » Thu Feb 06, 2020 1:38 pm

idk if its a feature but can you make other npcs follow lineguides?

MrDoubleA
Edward
Edward
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: make other npcs follow lineguides

Postby MrDoubleA » Thu Feb 06, 2020 1:55 pm

Put this somewhere at the start of your luna.lua file:

Code: Select all

local lineguide = require("lineguide")
... and this to register each ID.

Code: Select all

lineguide.registerNpcs(npcID)

hEllO tHerE
Swooper
Swooper
Posts: 62
Joined: Mon Jul 22, 2019 4:53 pm
Flair: 20 MSD Etterna Player
Pronouns: he/him

Re: make other npcs follow lineguides

Postby hEllO tHerE » Thu Feb 06, 2020 2:07 pm

idk how to use lua, can u show me a pic of what it looks like in lua?

MrDoubleA
Edward
Edward
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: make other npcs follow lineguides

Postby MrDoubleA » Thu Feb 06, 2020 2:20 pm

hEllO tHerE wrote:
Thu Feb 06, 2020 2:07 pm
idk how to use lua, can u show me a pic of what it looks like in lua?
Here's an example.
Image

hEllO tHerE
Swooper
Swooper
Posts: 62
Joined: Mon Jul 22, 2019 4:53 pm
Flair: 20 MSD Etterna Player
Pronouns: he/him

Re: make other npcs follow lineguides

Postby hEllO tHerE » Thu Feb 06, 2020 2:26 pm

ty it worked :)


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 26 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari