Skip to main content

entity.set_prop

Sets the value of the property. For vectors or angles, pass three values.

entity.set_prop(ent: number, prop: string, ..., array_index: number)

Arguments

NameDescriptionType
entEntity index.number
propProperty name.string
valueThe property will be set to this value.unknown
array_indexIf propname is an array, the value at this array index will be returned.number