Robadob
01-31-2012, 00:30
Hi i was wondering if anyone had a guide on how i could store information in an entity in the map (at compile time) such as the worldspawn entity or gamerules and then read the value in a plugin. I've trawled google without success.
the values only need to be like
plugin_supported = 1
&
arena_count = 3
I've tried using GetEntProp and GameRules_GetProp but i keep getting errors like;
Native "GetEntProp" reported: Property "arena_count" not found (entity 113/tf_gamerules)
Which leads me to assume that i'm missing something or that it's not possible.
If it is infact not possible, what would be the easiest way to go about creating a custom entity for storing these 2 values?
Thanks
the values only need to be like
plugin_supported = 1
&
arena_count = 3
I've tried using GetEntProp and GameRules_GetProp but i keep getting errors like;
Native "GetEntProp" reported: Property "arena_count" not found (entity 113/tf_gamerules)
Which leads me to assume that i'm missing something or that it's not possible.
If it is infact not possible, what would be the easiest way to go about creating a custom entity for storing these 2 values?
Thanks