Solved Dino Stats Manipulation

thered87

New member
Plugin Developer
Messages
19
Likes
10
Points
3
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

Monetise Your Game Server

Want to monetise your ARK Server? Create your own webstore at tebex.io

OwnProx

Moderator
Plugin Developer
Messages
714
Likes
366
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:
Messages
9
Likes
0
Points
1
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