Pushpc

From Hercules Wiki
Revision as of 02:29, 10 June 2013 by Via (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Syntax

  • pushpc <direction>,<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 db/const.txt

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;