Talk:DelayEvent

From Dragon Age Toolset Wiki
Jump to: navigation, search

A possible example suggested by georage:

To create a quasi-heartbeat, create a script called 'my_heartbeat' and include this in it

DelayEvent(6.0, GetHero(), Event(EVENT_TYPE_HEARTBEAT), "my_heartbeat");

Detailed example: [1]

However the quality of scripting and document must be improved before it would be an appropriate reference. Additionally reference pages must not reference external resources which cannot be maintained by the editors.

--Sunjammer 18:15, 8 December 2009 (UTC)


Feel free to 'improve the quality' of the scripting, but it works, and people would like to know how to get a heartbeat working. -- georage
Not everyone's definition of "works" is the same so, for example, while your example claims to be an area heartbeat it sends the delayed event to the player whereupon it would become a player heartbeat. Bryan's hastily cleaned up version is unfortunately no better in this regard. Ironically moving the example to the "talk" page was intended to protect readers and provide sufficient time test the script, confirm and resolve the issues and produce a revised version which would be suitable to act as a reference.
--Sunjammer 19:42, 8 December 2009 (UTC)
My testing has revealed that the scriptname parameter does not function as described for an area object. It does however function as described for a trigger object. Is this intentional or a bug?
--Sunjammer 21:41, 8 December 2009 (UTC)