CityRP Documentation Repository

cityrp.buildingProps

Whole-building props, which fire and breaching charges leave standing the way they do the map's own buildings.

Functions

Sharedcityrp.buildingProps.IsBuilding(ent) → booleanSource ☍

Whether an entity is a whole-building prop that fire and breaching charges must not destroy.

Parameters

  • entEntityThe entity to check.

Returns

  1. booleanTrue if the entity is valid and its model is in cityrp.buildingProps.models.

Tables

Sharedcityrp.buildingPropsSource ☍
Sharedcityrp.buildingProps.modelsSource ☍

Models of whole-building props, keyed by lowercased model path. Only whole buildings belong here: modular pieces such as the models/ue4/buildings/ facades or models/housepack3/paintbrush_kits/ would make fireproof, breach-proof walls. House Pack 3 lists only its _nodoors variants, whose doorways take player door props that stay flammable and breachable; the variants with doors modelled in would be sealed, immune shells.