Project Zomboid

Project Zomboid

Excrementum
star  [developer] 23 Sep, 2022 @ 10:24am
API (for other modders)
Deprecated:
Function - API_AddIgnoreBodyLocation()
This function excludes specific body location from drop pants action.

Syntax:
Excrementum.API_AddIgnoreBodyLocation(body_loc_name, value);

Value may be:
  • true / nil - excludes in general.
  • "pee" - allows only pee action (e.g. jeans). Otherwise is included in drop pants action.
  • "pee_silent" - allows only pee action and no zip sound.
  • "only_long" - allows this clothes type but only if it doesn't cover lower legs (mostly for skirt/dress types).

Example:
if Excrementum and Excrementum.API_AddIgnoreBodyLocation then Excrementum.API_AddIgnoreBodyLocation("RasSkin"); Excrementum.API_AddIgnoreBodyLocation("RasMalePrivatePart"); end


Don't use this! New API is coming.
Last edited by star; 15 Oct, 2022 @ 8:35pm
< >
Showing 1-1 of 1 comments
star  [developer] 23 Sep, 2022 @ 11:13am 
Defecate and Urinate Actions
Does urination/defecation.

Syntax:
Excrementum:InvoluntaryUrinate(is_forced) Excrementum:InvoluntaryDefecate(is_forced)
  • is_forced - boolean value. If true, it will does action even on empty cavity.

Examples:
if Excrementum then Excrementum:InvoluntaryUrinate() end
if Excrementum then Excrementum:InvoluntaryDefecate() end
< >
Showing 1-1 of 1 comments
Per page: 1530 50