Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = entity_get("player")
- int lua_entity_get(lua_State *L) {
- string _arg = lua_tostring(L, -1); // "player" in this example
- Entity *_entity = entityManager->GetEntity(_arg);
- CreateEntityTable(_entity); // Push the table with fields from _entity for the return value
- return 1; // One return value - the table created above
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement