Пример #1
0
			public override void Start()
			{

				decreptifyTimer = m_owner.CallPeriodically(Utility.Random(5000, 10000), CastDecrepify);
				base.Start();
			}
Пример #2
0
		/// <summary>
		/// Adds a new Action to the list of Actions to be executed every action.Ticks Map-Ticks.
		/// </summary>
		public void CallPeriodically(IUpdateObjectAction action)
		{
			if (m_updateActions == null)
			{
				m_updateActions = new List<IUpdateObjectAction>(3);
			}
			m_updateActions.Add(action);
		}
Пример #3
0
		/// <summary>
		/// Removes the given Action
		/// </summary>
		/// <param name="action"></param>
		public void RemoveUpdateAction(IUpdateObjectAction action)
		{
			if (m_updateActions != null)
			{
				if (m_updateActions.Remove(action) 
					//&& m_updateActions.Count == 0
					)
				{
					//m_updateActions = null;
				}
			}
		}
Пример #4
0
		public override void Start()
		{
			distractingPainTimer = m_owner.CallPeriodically(12000, CastDistractingPain);
			terrifyTimer = m_owner.CallPeriodically(21000, CastTerrify);

			base.Start();
		}