TheMinero
oh yeah,! this is happening!
Hello, I am theminero, and I have several questions and problems with lua things, what I want to do is like a summon spring and this is the code:
is that I do not understand the P_SpawnMobj and the P_SpawnMobjFromMobj.
Lua::
addHook("PlayerThink",function(player)
if player.mo.skin == "sonic" and
player.cmd.buttons & BT_CUSTOM1
player.spring = true
player.spring = P_SpawnMobjFromMobj(player.mo,0*FRACUNIT,0*FRACUNIT,-1*FRACUNIT,MT_YELLOWSPRING)
if not (player.cmd.buttons & BT_CUSTOM1)
and player.spring == true then
P_KillMobj(player.spring)
player.pflags = $|PF_THOKKED
end
end
end)
is that I do not understand the P_SpawnMobj and the P_SpawnMobjFromMobj.