Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LuaObj(IEntity, entity)
- {
- function(__tostring)
- lua_pushfstring(L, "IEntity[%d][%s]", self->GetId(), self->GetClass()->GetName());
- end
- function(__len)
- lua_pushnumber(L, self->GetId());
- end
- function(GetClass)
- lua_pushstring(L, self->GetClass()->GetName());
- end
- function(Remove)
- gEnv->pEntitySystem->RemoveEntity(self->GetId(), true);
- end0
- function(SetSize)
- self->SetScale(Vec3(1,1,1) * lua_tonumber(L, 2));
- ends
- }
Advertisement
Add Comment
Please, Sign In to add comment