Kartik Scripts

Scene Creator

The scene creator opens from the tablet's Settings (the gear, top right) → Training scenes, or from /fireadmin. Build a scene where you stand, save it and run it any time as a live call or as training (Config.Scenes).

Who can use it

Build and run scenesAdmins and firefighters of grade 3 and up (minGrade)
Run saved scenes as trainingFirefighters of grade 1 and up (runGrade)

What you can place

Aim where it should go (up to 25 m away) and place:

  • Fires of any type, and smoke
  • Gas leaks, chemical spills and timed explosions
  • Locked doors to force
  • Props (quick picks, or type any model name)
  • Vehicles: a wreck, on fire, or with the driver trapped
  • People: trapped, injured, a caller or an evacuee, each with a chosen condition

Up to 40 elements per scene and 60 scenes. Scenes are saved in the database (kfj_store).

Running a scene

TrainingLive
PayNoneThe scene's reward (default 1200)
XPHalf (trainingXp)Full (default 120)
MDTNot postedPosted like any call
Station alarmOnly if you ask for itRings the closest station

Scenes have a 30 minute time limit by default.

Sharing scenes

Build your own missions here and share them with other server owners as JSON.

  • Export as JSON (open a scene): the scene is saved as scenes/<name>.json inside the resource and copied to your clipboard.
  • Import a scene file: put a .json file someone sent you in the resource's scenes/ folder and type its name.
  • Import a scene: paste the JSON straight in. Older KFJ1: share codes still work.

Scenes keep their places in the world, so they work on servers with the same map. Imported scenes are checked like any saved scene: unknown fields are dropped and values are kept in range, so a bad or edited file is refused or cleaned. scenes/example_house_fire.json ships as an example.

{
    "format": "kartik-firefighterjob-scene",
    "version": 1,
    "name": "House fire, Forum Drive",
    "callType": "fire",
    "reward": 1200,
    "xp": 120,
    "timeLimit": 30,
    "elements": [
        { "t": "fire", "x": -14.3, "y": -1441.2, "z": 31.1, "h": 0.0, "fire": "structure", "indoor": true },
        { "t": "victim", "x": -12.6, "y": -1443.9, "z": 34.6, "h": 90.0, "role": "trapped", "condition": "smoke", "life": 480 },
        { "t": "vehicle", "x": -25.1, "y": -1437.0, "z": 30.6, "h": 180.0, "model": "emperor", "mode": "fire" }
    ]
}
Element (t)Fields
firefire (fire type), indoor
smokelevel (20 to 100)
gas, spillr (radius, 4 to 30 m), time (seconds)
explosiontime (seconds until it goes off)
doora locked door to force
propmodel
vehiclemodel, mode (wreck, fire, trapped)
victimrole (trapped, injured, caller, evacuee), condition, life (seconds)

Every element has x, y, z and h (heading). timeLimit is in minutes.

On this page