ChangePath

From Game Editor

Jump to: navigation, search
  • ChangePath:

Change Actor path and set axis (X_AXIS, Y_AXIS, BOTH_AXIS).


int ChangePath(char *actorName, char *pathName, int axis)

  • 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.

  • pathName:

- any path name (including "no path" and "random path").


Return 1 if success, 0 on error.

  • Script Editor Syntax:
ChangePath("MyActor", "path1", BOTH_AXIS);