wolfDashboard
Wolf Territoriesinteger wolfDashboard(string avatar, list rules)
Drive the Wolf dashboard of a driver sitting on this object: key/value pairs - type ("car", "truck", "bike"), units ("kmh", "mph"), rpm, max_rpm, redline, max_speed, gear ("P", "R", "N", "D", "1".."18"), fuel, adblue (percent), temp (C), air1, air2 (bar), indicators (0 off, 1 left, 2 right, 3 hazard), lights (0, 1 dipped, 2 main), handbrake, retarder (0-5), cruise, drive_time (seconds), odo (km), warnings ("engine,oil,abs..."), clear. The speed is measured by the viewer. At most 5 a second. TRUE when sent.
Only for a script in the linkset the avatar is sitting on, on a Wolf Territories region, to a driver using WolfViewer or WolfStorm. Numbers outside a key's range are held to it; an unknown key, a key given twice or a value that is not allowed refuses the whole call. What you send is kept while the driver stays in the vehicle, until "clear", 1. At most 5 updates a second per driver.
Parameters
| Type | Name | What it does |
|---|---|---|
| string | avatar | The driver: the avatar sitting on this object. |
| list | rules | Key/value pairs, any order, any subset. Every key, its type and its allowed values are in the table below. |
The rules list
Generated from the region software’s own list of accepted keys.
| Key | Type | Values | Note |
|---|---|---|---|
| type | string | "car", "truck" or "bike" | |
| units | string | "kmh" or "mph" | |
| gear | string | "P", "R", "N", "D", "S", "C", "R1" to "R4", or "1" to "18" | |
| rpm | integer | 0 to 30000 (whole number) | |
| max_rpm | integer | 1000 to 30000 (whole number) | |
| redline | integer | 500 to 30000 (whole number) | |
| max_speed | integer | 10 to 1000 (whole number) | full scale, in units |
| fuel | float | 0 to 100 | percent |
| adblue | float | 0 to 100 | percent |
| temp | float | -40 to 150 | coolant, degrees C |
| air1 | float | 0 to 12 | brake circuit 1, bar |
| air2 | float | 0 to 12 | brake circuit 2, bar |
| indicators | integer | 0 to 3 (whole number) | 0 off, 1 left, 2 right, 3 hazard |
| lights | integer | 0 to 2 (whole number) | 0 off, 1 dipped, 2 main beam |
| handbrake | integer | 0 to 1 (whole number) | |
| retarder | integer | 0 to 5 (whole number) | 0 off, 1..5 the script's own stages |
| cruise | integer | 0 to 1 (whole number) | |
| drive_time | integer | 0 to 86400 (whole number) | seconds driven since the last break |
| odo | float | 0 to 9999999 | km |
| warnings | string | a comma-separated list of: engine, oil, battery, brake, abs, temp, tyre, airbag, seatbelt, fuel, adblue, air, door, esp ("" = none) | |
| clear | integer | 0 to 1 (whole number) | 1: forget every value this vehicle set |
How players use it, and more examples: the Driving guide.
Example
wolfDashboard(llAvatarOnSitTarget(), ["type","car",
"rpm", 3200, "gear", "3", "fuel", 74]);Ours alone. Grid features you will not find on any other OpenSimulator grid.