Improve EventSequence example.

This commit is contained in:
hispidence 2023-01-26 21:19:58 +00:00
parent a52177e34c
commit fcf96568f9

View file

@ -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()