Re: Global timer
Posted: Wed Oct 29, 2014 7:37 pm
Ixnatifual wrote:Or attach it to the party.
Official Legend of Grimrock Forums
https://mail.almosthumangames.com/forum/
https://mail.almosthumangames.com/forum/viewtopic.php?t=7829
Ixnatifual wrote:Or attach it to the party.
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")