Jump to content

Reduce and raise sweat level


SlickyLynx
 Share

Recommended Posts

Hello modding friends,

considering I have no experience or idea what I am doing, I would like to reduce and raise my characters sweat level. I found this function but idk how to use it :

 

 

So can anyone give an advice and tell me how I can do that ingame or with a script?

Link to comment
Share on other sites

You need to get the player ped and then set the sweat level for it.

This is how you get the ped:

Ped playerPed = PLAYER::PLAYER_PED_ID();

This is how I suppose you set the sweat level (although I dont know which values work):

PED::SET_PED_SWEAT(playerPed, 1.0f);

 

You can check out the code of PDO here - maybe it helps you understand stuff:

https://github.com/HJHughJanus/PedDamageOverhaulRDR2/blob/master/PDO/PedDamageOverhaul.cpp

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...