Skip to content

Entity Input ​

Entity Input block is used by entities to pass input information back to Sonolus.

Identifier ​

ts
const EntityInputId = 4005

Values ​

IndexInitial ValueDescription
00Judgment of the entity: 0 = Miss, 1 = Perfect, 2 = Great, 3 = Good
10Accuracy of the entity
2-1Assigned bucket of the entity: -1 = None, 0 = 0th bucket, 1= 1st bucket, 2= 2nd bucket, etc
30Bucket value of the entity
40Haptic: 0 = None, 1 = Light, 2 = Medium, 3 = Heavy, 4 = Long

Access ​

CallbackReadWrite
preprocess✔✔
spawnOrder✔✔
shouldSpawn✔✔
initialize✔✔
updateSequential✔✔
touch✔✔
updateParallel✔✔
terminate✔✔

Remarks ​

When an entity is despawned, values of Entity Input block will be used by Sonolus to process judgment, combo, life, score, etc.

For entities spawned by Spawn function call, it does not have any input and cannot access this block.