Telemetry
Setup the Telemetry to track reliability of AI EMS on your server.
I've included telemetry in this script in case you want to measure the reliability in your server.
First you need to set Config.RecordTelemetry = true
in the config.lua
Next create the table provided in ai_ems_telemetry.sql
Event Status:
started
= Scenario started after ambulance and peds are dispatchedsuccess
= Player was succesfully brought to the hospital and checked intimedout
= The scenario never finished and Config.ScenarioTimeOut had elapsed, scenario is ended and the entities are cleaned up.abandoned
= EMS arrived on scene, but the downed player was no longer in the area or they were no longer dead. The scenario is then abandoned. Note this is not counted as a failure.abandoned-dead
= The scenario was abandoned because the EMS ped was dead. Ambulance and ped will get cleaned up. This is usually caused by other players killing the ped, getting run over by a car, etc.success-forced-stuck
= Something happened enroute that caused the ambulance to get permanently stuck forConfig.StuckTime
(default 3 minutes). At this point the player is force checked into the hospital using the eventConfig.HospitalRespawnEvent
success-forced-checkin
= Ambulance made it to the hospital, but something happened causing player to not get brought to checkin location. After 10 seconds, force check them in
Calculate Success Rate
Using the above metrics you can calculate the success rate of AI EMS on your server.
Additional Notes
We have run the script on our server for over a year on our server and have observed a reliability of 93% on more than 4000 times it was used.
Last updated