Method SetStatFloat
SetStatFloat(string, float)
Sets the Float Stat with corresponding stateDefinitionId to value.
Declaration
public void SetStatFloat(string statDefinitionId, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | statDefinitionId | Float Stat statDefinitionId to set |
| float | value | value to set stat to |
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | The parameter doesn't exist in the stats catalog |
| InvalidOperationException | The parameter refers to a stat of a different type |
| ArgumentNullException | The stat parameter is null or empty |
SetStatFloat(int, float)
Sets the Float Stat with corresponding statDefinitionHash to value.
Declaration
public void SetStatFloat(int statDefinitionHash, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| int | statDefinitionHash | Float Stat statDefinitionHash to set |
| float | value | value to set stat to |
Exceptions
| Type | Condition |
|---|---|
| NullReferenceException | The parameter doesn't exist in the stats catalog |
| InvalidOperationException | The parameter refers to a stat of a different type |