ColshapeManager
@vimp-mp/types 2.0.1Creates client-local colshapes and tracks server-owned trigger volumes.
ts
interface ColshapeManagerMembers
all
ts
readonly all: Array<Colshape>All known non-destroyed colshapes.
count
ts
readonly count: numberNumber of known non-destroyed colshapes.
createCircle
ts
createCircle(position: Vec3 | Vec2, radius: number, options?: ColshapeCreateOptions): ColshapeCreates a client-local two-dimensional circular trigger volume.
createCuboid
ts
createCuboid(position: Vec3, size: Vec3, options?: ColshapeCreateOptions): ColshapeCreates a client-local axis-aligned cuboid trigger volume.
createCylinder
ts
createCylinder(position: Vec3, radius: number, height: number, options?: ColshapeCreateOptions): ColshapeCreates a client-local vertical cylindrical trigger volume.
createSphere
ts
createSphere(position: Vec3, radius: number, options?: ColshapeCreateOptions): ColshapeCreates a client-local spherical trigger volume.
destroy
ts
destroy(id: number): booleanDestroys the client-local colshape identified by its wrapper id.
getById
ts
getById(id: number): Colshape | nullReturns a known colshape by client-local wrapper id.
getByRemoteId
ts
getByRemoteId(remoteId: number): Colshape | nullReturns a remote colshape by server/network id.