Help on my first LUA

GamerLuna2020

The one and only!
I am starting on my first lua, and I was wondering.. How do I make a momentum mod, and only apply that momentum mod for Sonic only?
 

CST1229

back after too much time
To lock it to a skin, just lock the code behind a
Lua:
if p.mo.skin == "sonic" then
-- the code that does momentum stuff
end
statement. (p should be the player variable you set in the hook function)
 

lnferno

Blazing Creator
I am starting on my first lua, and I was wondering.. How do I make a momentum mod, and only apply that momentum mod for Sonic only?
I wouldn't recommend doing a custom momentum mod as your first Lua script at all. Physics mods like that are hellish to work on, partly because you just can't disable SRB2's physics.

Try something less ambitious.
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Top