native
zpn_class_set_prop
Syntax
native zpn_class_set_prop(const class_id, ePropClassRegisters:prop, any:...);
Description
Sets a class property.
Parameters
| class_id | Class index |
|---|---|
| prop | Property to set, from ePropClassRegisters |
| ... | New property value |
Note
For model-related properties, call this from plugin_precache() so
models can be precached safely.
Note
The expected value type depends on the property. See
ePropClassRegisters in zombie_plague_next_const.inc.
Return
1 on success, 0 if class storage is unavailable
Error
If class_id is not a valid class index, an error can be
thrown by the underlying array access.