Page 1 of 1
Help me guys
Posted: Fri Apr 22, 2016 7:48 pm
by King Godzilla
I made a Lunadll boss that throws npcs that replaces an sml2 para-goomba but for some reason, the npc the boss throws is set into chase mode. Is there a way to change the projectile npc ai so that it is set in jump mode?
Re: Help me guys
Posted: Fri Apr 22, 2016 8:01 pm
by Nerx
You'll want to set an AI value of some sort for each of your npcs, you can find a list
here. I think
this should work in this case, there's not anything specific for sml2 paragoombas.
Re: Help me guys
Posted: Sat Apr 23, 2016 9:56 pm
by King Godzilla
Nerx wrote:You'll want to set an AI value of some sort for each of your npcs, you can find a list
here. I think
this should work in this case, there's not anything specific for sml2 paragoombas.
Here is the code I used.
Re: Help me guys
Posted: Sat Apr 23, 2016 9:58 pm
by PixelPest
LunaDLL is really deprecated. You should probably use LunaLua since that's what more people know and can help you with
Re: Help me guys
Posted: Mon Apr 25, 2016 3:53 pm
by TDK
King Godzilla wrote:I made a Lunadll boss that throws npcs that replaces an sml2 para-goomba but for some reason, the npc the boss throws is set into chase mode. Is there a way to change the projectile npc ai so that it is set in jump mode?
Try this:
Code: Select all
for k,v in pairs(NPC.get(243,player.section)) do
v.ai1 = 1
end
Re: Help me guys
Posted: Wed Apr 27, 2016 2:39 am
by RhysOwens
TheDinoKing432 wrote:King Godzilla wrote:I made a Lunadll boss that throws npcs that replaces an sml2 para-goomba but for some reason, the npc the boss throws is set into chase mode. Is there a way to change the projectile npc ai so that it is set in jump mode?
Try this:
Code: Select all
for k,v in pairs(NPC.get(243,player.section)) do
v.ai1 = 1
end
He said LunaDLL but I pasted a code into a blank lua file and it worked for me.