fetchDino
Retrieves a dino from Sentinel’s database.
Signatures
beacon.fetchDino(dinoId);
Parameters
dinoId
The Sentinel UUID of the desired dino.
Return Values
Type | Notes |
---|---|
Object | If the dino was found, returns an object conforming to the Dino class. Returns null if not found, which is rare, but possible. |
Examples
Fetch the dino that trigger one of the dino-oriented events
const dino = beacon.fetchDino(beacon.eventData.dinoId);