Skip to main content

entity.get_prop

Returns the value of the property, or nil on failure. For vectors or angles, this returns three values.

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

Arguments

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

Returns netprop value: undefined