mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Improve EventSequence example.
This commit is contained in:
parent
a52177e34c
commit
fcf96568f9
1 changed files with 14 additions and 11 deletions
|
@ -22,7 +22,9 @@
|
|||
-- LevelFuncs.TriggerSequence = function(obj)
|
||||
-- local posSteve = TEN.Objects.GetMoveableByName("stevePosNullmesh"):GetPosition()
|
||||
-- local posChris = TEN.Objects.GetMoveableByName("chrisPosNullmesh"):GetPosition()
|
||||
-- local mySeq = EventSequence.Create("my_seq",
|
||||
-- local mySeq = EventSequence.Get("my_seq")
|
||||
-- if not mySeq then
|
||||
-- mySeq = EventSequence.Create("my_seq",
|
||||
-- false, -- does not loop
|
||||
-- {seconds = true, deciseconds = true}, -- timer format, see Timer for details
|
||||
-- 6, -- seconds until call the function specified in next arg
|
||||
|
@ -33,6 +35,7 @@
|
|||
-- {LevelFuncs.SpawnBaddy, TEN.Objects.ObjID.SAS_CAIRO, "chris", posChris},
|
||||
-- 1,
|
||||
-- LevelFuncs.HealLara)
|
||||
-- end
|
||||
--
|
||||
-- -- event sequences are inactive to begin with and so need to be started
|
||||
-- mySeq:Start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue