35 Crossfire.Log(Crossfire.LogDebug,
"Triggering connection %d on %s" % (con, ob.Map.Path))
36 ob.Map.TriggerConnected(con, pol)
39 timer = Crossfire.CreateObjectByName(
"event_timer")
40 timer.Title =
"Python"
41 timer.Name =
"%d %d" % (con, pol)
42 timer.Slaying =
"/python/misc/trigger.py"
44 ob.CreateTimer(delay, 1)
47 ev = Crossfire.WhatIsEvent()
48 if ev.Subtype == Crossfire.EventType.TIMER:
49 parts = ev.Name.strip().
split(
" ")
54 Crossfire.Log(Crossfire.LogDebug,
"Un-triggering connection %d on %s" % (con, ev.Env.Map.Path))
55 ev.Env.Map.TriggerConnected(con, pol)
56 except Exception
as e:
57 Crossfire.Log(Crossfire.LogError,
"Error parsing delayed trigger on %s: %s" % (ev.Env.Map.Path, e))