I can't seem to get my script to execute.
I'm creating my timer:
Code: Select all
spawn("timer",nil,nil,nil,nil,nil,"ztimer")
ztimer.timer:setTimerInterval(1)
ztimer.timer:setDisableSelf(false)
ztimer.timer:setTriggerOnStart(false)
ztimer.timer:setCurrentLevelOnly(false)
ztimer.timer:addConnector("onActivate","zscript","zanzer")
Code: Select all
spawn("script_entity",nil,nil,nil,nil,nil,"zscript")
zscript.script:setSource("function zanzer()hudPrint('test')end")
Code: Select all
warning! invalid connector target: zscript