make other npcs follow lineguides

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
hEllO tHerE
Bit
Bit
Posts: 61
Joined: Mon Jul 22, 2019 4:53 pm
Flair: totally dont liek pizza n stuf

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
Flurry
Flurry
Posts: 351
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?
Pronouns: he/him

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
Bit
Bit
Posts: 61
Joined: Mon Jul 22, 2019 4:53 pm
Flair: totally dont liek pizza n stuf

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
Flurry
Flurry
Posts: 351
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?
Pronouns: he/him

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
Bit
Bit
Posts: 61
Joined: Mon Jul 22, 2019 4:53 pm
Flair: totally dont liek pizza n stuf

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: cato and 2 guests