CreateTimer

From Game Editor

Revision as of 23:48, 13 June 2009 by Skydereign (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
  • CreateTimer:

Create a new timer.

int CreateTimer(char *actorName, char *timerName, int milliseconds)

  • actorName

- "Event Actor": Actor that is receiving the current event.

- "Parent Actor": Event Actor's parent, if actor has a parent.

- "Creator Actor": Event Actor's creator, if Event Actor has been created in some "Create Actor" action.

- "Collide Actor": Actor that collided with the event Actor.

- Any Actor in game.

  • timerName:

- the new timer's name. (The timerName must be defined in Create new timer panel) milliseconds: new timer tempo.


Return 1 if success, 0 on error.

  • Script Editor Syntax:
CreateTimer("Event Actor", "MyTimer", 2000)