Script:attractor

From Arx Libertatis Wiki
Jump to navigation Jump to search

The attractor script command is used to pull/push the player towards/away from an entity. The player is pulled or pushed whenever in the specified radius around the entity with a force linearly falls of with increasing distance from the entity and vanishes at the specified radius. Attractors on entities with collision disabled are ignored.

Usage

attractor <entity> <power*> <radius*>
attractor <entity> off

Context: For self

Parameters:

ParameterTypeDescription
entity entity The entity to pull the player towards or push the player away from
power number or variable The force of attraction, positive to pull or negative to push
radius number or variable The range of attraction