Actions: Add set interval action, that allows to increase the action timer interval to effectively produce wait times.

This commit is contained in:
zorman2000 2017-01-13 07:22:00 -05:00
parent 1cb6eb5dd0
commit 137f02e863
1 changed files with 1 additions and 0 deletions

View File

@ -368,6 +368,7 @@ local function npc_spawn(self, pos)
-- npc.add_action(ent, npc.actions.lay, {self = ent})
-- npc.add_action(ent, npc.actions.lay, {self = ent})
npc.actions.use_sittable(ent, nodes[1], npc.actions.const.sittable.GET_UP)
npc.add_action(ent, npc.actions.set_interval, {self=ent, interval=10, freeze=true})
npc.add_action(ent, npc.actions.freeze, {freeze = false})
end