Solved Dino Stats Manipulation

thered87

Member
Plugin Developer
Messages
35
Points
8
Hey,

I was trying to modify the stats of an Dino using his UPrimalCharacterStatusComponent but didn't managed to get this working.

Does anyone have an Idea how to change the stats? :)

Kind regards
Sven
 
Advertisement

Official Game Server Partner

OwnProx

Moderator
Plugin Developer
Messages
714
Points
63
C++:
UPrimalCharacterStatusComponent* charStatus = Dino->GetCharacterStatusComponent();

float* health = charStatus->CurrentStatusValuesField()();
if (*health < 100.f) *health = 100.f;

float* torpor = charStatus->CurrentStatusValuesField()() + 2;
*torpor = 0;

float* speed = charStatus->CurrentStatusValuesField()() + 9;
*speed = 100;

float* melee = charStatus->CurrentStatusValuesField()() + 8;
*melee = 100;
check EPrimalCharacterStatusValue for the offsets, credits to Michidu he taught me how.
 
Last edited:

twobrotherzzh

New member
Messages
26
Points
3
Hey,i have some problems,
how to change the MaxStatusValues,i use SetMaxStatusValue() and MaxStatusValuesField()()
it is work,but will back when servers restart or upload dino.
need some function to fixed it?
and how to set dino gender,thank you~
My English is not very good,excause.
 
Top