five-on-it / apps/client/src/renderer/remotes / modelFor
Function: modelFor()
modelFor(
kind,cls,weapon?):string|undefined
Defined in: apps/client/src/renderer/remotes.ts:470
The model an entity is drawn with: its class's for a car, the tractor's with -trailer for a trailer, the character's for anyone on foot (the dog for a character of that role), a projectile's by the weapon that fired it (weapon): the rocket, a grenade (a launcher's too), or what was thrown, as itself (weapons.glb).
Parameters
kind
"prop" | "door" | "item" | "vehicle" | "container" | "camera" | "trailer" | "device" | "terminal" | "character" | "projectile" | "nails" | "flyer" | "zone"
cls
number
weapon?
number = 0
Returns
string | undefined