Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Routine: Teleport Entity

1cec0ld edited this page Jan 2, 2013 · 3 revisions

Syntax: {entity}.teleport.{location}[.yaw.pitch]

Description: Changes the entity location to the specified location object when the routine runs.

Example:

Damage: #Repel enemies.
    - 'if attacker.wielding.STICK':
        - 'target.teleport.world_loc(attacker_x + range(-10,10), attacker_y + range(-10,10), attacker_z + range(-10,10))'
Clone this wiki locally