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
⚠️
Attractors are not stored in save files. Any attractors that are meant to be persistent need to be re-added on load in the game_ready event.

ℹ️  In versions before Arx Libertatis 1.3 there can only be 16 attractors and attractor off does not free up an attractor to be used by another entity.