chaoloveicemdboy
Member
I want to make a poly object slide using LUA. I don't know how to get it work though.
It says I have to use a mobj_t type which I do, but when I do it does nothing after I had typed the command in and pressed enter in the console. I don't know which userdata structure to use in LUA for my polyobjects however. I have set up the sectors and stuff on my map.
EDIT: Issue is now fixed. I had to use continuous instead of each time.
Code:
Example code:
COM_AddCommand("openslidetestpolyobject", function(player)
if player.mo
A_LinedefExecute(mobj, 1)
end
end)
It says I have to use a mobj_t type which I do, but when I do it does nothing after I had typed the command in and pressed enter in the console. I don't know which userdata structure to use in LUA for my polyobjects however. I have set up the sectors and stuff on my map.
EDIT: Issue is now fixed. I had to use continuous instead of each time.
Last edited: