Page MenuHomeFeedback Tracker

[Feature Request] Expose CharacterStaminaComponent properties to Script Editor
Feedback, NormalPublic

Description

Hello,

It would be nice to expose more properties of the StaminaComponent to the script editor rather than only to editing prefabs. I wanted to use these to make Entity/Global Properties that can be edited by a game master to allow any user of the mod to adjust any and all Stamina settings without needing to rely on a uneditable preset defined for all characters/per character prefab.

Primarily getters and setters for the following properties. However it would be nice if all component properties were exposed since they're very clearly parameterized and are there.

Stamina Regain Per S

float GetStaminaRegen();
void SetStaminaRegen(float fGain);

Stamina Drain Run

float GetRunDrain();
void SetRunDrain(float fDrain);

Stamina Drain Sprint

float GetSprintDrain();
void SetSprintDrain(float fDrain);

While this is slightly off topic I was curious if I could get an answer, are there any plans to expose any/all properties currently editable in components to the script editor? A quick glance shows other topics asking for exposure of functions all over. It would be nice for example, to have everything in CharacterControllerComponent, and StaminaControllerComponent exposed so we could change these values as we please. Lean speed, jump velocity, action delays, drowning duration, stamina gains/drains etc. It seems this has already been implemented with the CharacterDamageManager since we can edit bleeding scales and such as an example.

Details

Severity
Feature
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

sl created this task.Apr 4 2024, 9:28 PM
Geez changed the task status from New to Feedback.Apr 5 2024, 11:15 AM