28.02.2018, 19:52
It's okay in a filterscript, just put that code under the OnFilterScriptInit public, and that's all. Also don't use CreateObject too much, there's a limit of 1000 objects, if you exceed this limit the objects will not be shown, so use CreateDynamicObject, there doesn't exist a limit.