Skip to content

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:453

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, or a grenade (weapons.glb).

Parameters ​

kind ​

"prop" | "door" | "item" | "vehicle" | "container" | "camera" | "trailer" | "terminal" | "character" | "projectile" | "nails"

cls ​

number

weapon? ​

number = 0

Returns ​

string | undefined