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

target

target(options): TargetCommandField & object

A shared entity a predicted command acts on, such as the ball a hit launches: the sender’s page runs the command’s reader at once as a guess, and the reader may write the target’s predicted traits, which the room’s answer confirms or corrects. Both ends refuse the command out-of-range where the target stands farther than range from the acting entity, as the sender’s screen showed it. A flight is read at its tick. An entity the sender controls is read where the sender’s page predicts it; any other is read where the stream drew it at the sender’s view step. The reader reads it as a PredictedEntity, or null with optional; list(target({ range }), maxLength) takes several, each judged, and one out of range refuses the whole command. Only a predicted command takes one. As the target data of Unreal’s ability system.

Parameter Type
options TargetFieldOptions & object

TargetCommandField & object

const hit = defineCommand({ ball: target({ range: 2.5 }) }, { predicted: true, entity: true });

target(options): TargetCommandField & object

A shared entity a predicted command acts on, such as the ball a hit launches: the sender’s page runs the command’s reader at once as a guess, and the reader may write the target’s predicted traits, which the room’s answer confirms or corrects. Both ends refuse the command out-of-range where the target stands farther than range from the acting entity, as the sender’s screen showed it. A flight is read at its tick. An entity the sender controls is read where the sender’s page predicts it; any other is read where the stream drew it at the sender’s view step. The reader reads it as a PredictedEntity, or null with optional; list(target({ range }), maxLength) takes several, each judged, and one out of range refuses the whole command. Only a predicted command takes one. As the target data of Unreal’s ability system.

Parameter Type
options TargetFieldOptions & object

TargetCommandField & object

const hit = defineCommand({ ball: target({ range: 2.5 }) }, { predicted: true, entity: true });