SonikkuBoy
Are you up 2 it?
Hello, i need help for a thok trail, i want the character the reflect behind him while thoking, something like this :
how can i do that?
thanks but i'm awful at lua, do you have the script or something?P_SpawnGhostMobj(mobj_t mobj)
Then do this in the S_SKINthanks but i'm awful at lua, do you have the script or something?
thanks dude! edit : ok but, i want it to be replicated multiple times, like 10 timesThen do this in the S_SKIN
rollitem = MT_GHOST
it produces the same mobj, so you shoudnt find any trouble using it
wotthanks dude! edit : ok but, i want it to be replicated multiple times, like 10 times
nvmwot
i have no clue why you'd want to do that
Heres a script to spawn a ghost:
what about colors?Heres a script to spawn a ghost:
addHook("PlayerThink", function(player)
if player.mo.skin == "yourcharacternamehere" -- you can delete this line to make it works for any character (not recommended)
local ghost = P_SpawnGhostMobj(player.realmo)
end
end)
addHook("PlayerThink", function(player)
if not(player.mo and player.mo.valid and player.mo.skin == "skinname") then return end
if player.pflags&PF_THOKKED
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 10
--Colorize is optional, just makes the ghost be completely blue or whatever
ghost.colorized = true
end
end)
where do i edit the colors
addHook("PlayerThink", function(player)
if not(player.mo and player.mo.valid and player.mo.skin == "skinname") then return end
if player.pflags&PF_THOKKED
local ghost = P_SpawnGhostMobj(player.mo)
ghost.fuse = 10
--Colorize is optional, just makes the ghost be completely blue or whatever
ghost.colorized = true
ghost.color == SKINCOLOR_GREEN
end
end)
Thank you.Lua:addHook("PlayerThink", function(player) if not(player.mo and player.mo.valid and player.mo.skin == "skinname") then return end if player.pflags&PF_THOKKED local ghost = P_SpawnGhostMobj(player.mo) ghost.fuse = 10 --Colorize is optional, just makes the ghost be completely blue or whatever ghost.colorized = true ghost.color == SKINCOLOR_GREEN end end)