Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

aimAt

aimAt(authority, character, point): void

Turns character to face point, a player’s, an NPC’s or any character’s, as the game’s rule: a lock-on, the enemy a system just shot at. authority is the world’s that decides it: the room’s step, a step of a game played alone, requireAuthority in a test, or findAuthority(writer, character) over a character only the page holds. Its body faces the point and its legs turn toward the way it steps, up to 75 degrees, past which a step back plays its walk in reverse, as Unreal’s aim offset and orientation warping do. The point keeps its height, which the arm and chest lean toward. null lets it go, and the character turns back to the player’s aim or its step. It wins over the player’s aim, setPlayerAim or the aim stick, and over the camera’s lock. Written on the character, so a room streams it and every page draws it; the player’s page learns of a room’s point one trip late, as one correction.

Parameter Type
authority EntityAuthority
character Entity
point AimPoint | null

void