Change character in-game?

Status
Not open for further replies.

STHE123O

Little Monster
Hello! Is it possible to make a character (ex. Sonic) turn into another (ex. Tails) when a certain floor is touched?

I know it was possible in previous SRB2 versions...
Thanks!
 
Wire up a linedef executor to LD443 set up to run a Lua hook that calls R_SetPlayerSkin. Something like this:

Code:
addHook("LinedefExecute", function(line, mo)
    if mo and mo.valid and mo.player then
        R_SetPlayerSkin(mo.player, "tails")
    end
end, "BE_TAILS")

and then the LD443 would have textures that spell out "BE_TAILS". Do similar for other characters.
 
Wire up a linedef executor to LD443 set up to run a Lua hook that calls R_SetPlayerSkin. Something like this:

Code:
addHook("LinedefExecute", function(line, mo)
    if mo and mo.valid and mo.player then
        R_SetPlayerSkin(mo.player, "tails")
    end
end, "BE_TAILS")

and then the LD443 would have textures that spell out "BE_TAILS". Do similar for other characters.

Thanks! Do you think you could make an example WAD for me? I am not really familiar with LUA...
 
Status
Not open for further replies.

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

Back
Top