Skip to content
Haru edited this page Oct 19, 2016 · 1 revision

Syntax

  • pushpc <direction></direction>,<cells></cells>;

Description

This command will push the currently attached player to given direction by given amount of square cells. Direction is the same as used when declaring NPCs, and can be specified by using one of the DIR_* constants

The knock-back is not restricted by items or map flags, only obstacles are taken into account. If there is not enough space to perform the push (e.g. due to a wall), the character is pushed only up to the obstacle.

Examples

 // pushes the character 5 cells in 3 o'clock direction from it's current position.
 pushpc DIR_EAST, 5;

Category:Script Command

Clone this wiki locally