CNetPropManager
23 own methods
!Used to get/set entity network fields
Methods
callable on a CNetPropManager script handle| Script Function | Returns | Parameters | Description |
|---|---|---|---|
| GetPropArraySize | int | hscript, cstring | Arguments: ( entity, propertyName ) |
| GetPropEntity | hscript | hscript, cstring | Arguments: ( entity, propertyName ) - returns an entity |
| GetPropEntityArray | hscript | hscript, cstring, int | Arguments: ( entity, propertyName, arrayElement ) - returns an entity |
| GetPropFloat | float | hscript, cstring | Arguments: ( entity, propertyName ) |
| GetPropFloatArray | float | hscript, cstring, int | Arguments: ( entity, propertyName, arrayElement ) |
| GetPropInt | int | hscript, cstring | Arguments: ( entity, propertyName ) |
| GetPropIntArray | int | hscript, cstring, int | Arguments: ( entity, propertyName, arrayElement ) |
| GetPropString | cstring | hscript, cstring | Arguments: ( entity, propertyName ) |
| GetPropStringArray | cstring | hscript, cstring, int | Arguments: ( entity, propertyName, arrayElement ) |
| GetPropType | cstring | hscript, cstring | Arguments: ( entity, propertyName ) - return the prop type as a string |
| GetPropVector | Vector | hscript, cstring | Arguments: ( entity, propertyName ) |
| GetPropVectorArray | Vector | hscript, cstring, int | Arguments: ( entity, propertyName, arrayElement ) |
| HasProp | bool | hscript, cstring | Arguments: ( entity, propertyName ) |
| SetPropEntity | void | hscript, cstring, hscript | Arguments: ( entity, propertyName, value ) |
| SetPropEntityArray | void | hscript, cstring, hscript, int | Arguments: ( entity, propertyName, value, arrayElement ) |
| SetPropFloat | void | hscript, cstring, float | Arguments: ( entity, propertyName, value ) |
| SetPropFloatArray | void | hscript, cstring, float, int | Arguments: ( entity, propertyName, value, arrayElement ) |
| SetPropInt | void | hscript, cstring, int | Arguments: ( entity, propertyName, value ) |
| SetPropIntArray | void | hscript, cstring, int, int | Arguments: ( entity, propertyName, value, arrayElement ) |
| SetPropString | void | hscript, cstring, cstring | Arguments: ( entity, propertyName, value ) |
| SetPropStringArray | void | hscript, cstring, cstring, int | Arguments: ( entity, propertyName, value, arrayElement ) |
| SetPropVector | void | hscript, cstring, Vector | Arguments: ( entity, propertyName, value ) |
| SetPropVectorArray | void | hscript, cstring, Vector, int | Arguments: ( entity, propertyName, value, arrayElement ) |