Ixnatifual wrote:Or attach it to the party.
Global timer
Re: Global timer
Damn
I thought that it was an unique idea. But it seems to work so far, no more complicated scripts or timers on every level needed for this.
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
- cloneObject viewtopic.php?f=22&t=8450
Re: Global timer
do you need to create a function () for this?JKos wrote:I suddenly got this crazy idea that I have to try to attach a TimerComponent to the Party-object. And you know what? It works![]()
then in script:Code: Select all
defineObject{ name = "party", baseObject = "party", components = { { class = "Timer" } } }Now you have a timer which follows the party. But I haven't tested this much, so it's possible that it causes some problems.Code: Select all
party.timer:addConnector("onActivate", "t", "onPartyTimer")
or do I just copy paste that into a scripting entity?