Like the title said, Is it possible to copy a function from hammer into Lua?
Yes/No, it depends
Im trying to put a point_push function into lua, so is that possible?
What’s a function in Hammer?
I mean like the entity/object point_push. Is there anyway to convert it into lua?
It should be possible if you port the point_push C++ code to Lua: https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/server/physobj.cpp#L1926
[editline]30th September 2017[/editline]
I’ve done it with game_ui so I suppose it should work for this too.
Ok, thx. Can you link me to a C++ to Lua converter?
There is no such thing… You’ll have to use your brain and code the entity yourself going by the C++ code.
You might want that
Ok, i’ll try that out