Syntax: Select all
gamerules_proxy = entities.entity.BaseEntity.find("tf_gamerules")
gamerules = None
for prop in gamerules_proxy.server_class.table:
if prop.name == "tf_gamerules_data":
gamerules = prop.proxy_function(None, None, None, None, 0)
break
However, I was greeted with this:
Code: Select all
TypeError: tf_gamerules_data is a DataTable.
I dug through the code and found it came from here: https://github.com/Source-Python-Dev-Te ... s.cpp#L139, which just calls GetProxyFn directly (so the assertion did the right thing, that wouldn’t have worked). What I could not find was a wrapper for GetDataTableProxyFn, which is what I need. Is there one?
Thanks.