Page 1 of 1
Control script
Posted: Sun Sep 28, 2008 3:07 am
by Nightson
When i start control script for some item then shutdown pol and start it again did i have to run this script again or is it running?
Re: Control script
Posted: Sun Sep 28, 2008 10:45 am
by CWO
If its set in itemdesc.cfg as the ControlScript for the item, it should run for that item on item creation and system start for that item.
Re: Control script
Posted: Sun Sep 28, 2008 1:11 pm
by Nightson
well it isnt it starts when someone identify item then is start_script(":magic:MagicControl",item)
Re: Control script
Posted: Sun Sep 28, 2008 1:21 pm
by CWO
Well you're starting it with start_script which could be a control script but isn't by POL's definition. If you always want a script to run for a certain objtype, you can use the setting in itemdesc.cfg -> ControlScript :magic:MagicControl otherwise any other way you would always have to start it yourself. You can use a start.src to start when POL starts but if you're doing it on every one of a certain item, you should use the itemdesc.cfg setting.
Re: Control script
Posted: Mon Sep 29, 2008 1:25 am
by Nightson
thx