-
Notifications
You must be signed in to change notification settings - Fork 757
Pushpc
Haru edited this page Oct 19, 2016
·
1 revision
- pushpc <direction></direction>,<cells></cells>;
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.
// pushes the character 5 cells in 3 o'clock direction from it's current position. pushpc DIR_EAST, 5;