This component is used to improve or wreck the owners state of sanity. It’s handled by ‘sanity’. Do not confuse this component with ‘sanityaura‘ or the variable dapperness in ‘sanity’!
Component Dapperness Fields
Type | Name | Description |
---|---|---|
number | dapperness | The rate at which sanity changes, in points/second. (that means '1' is a lot) |
function | dapperfn | Optional, interactive sanity rates. Args: inst, owner |
Example
1 2 3 4 5 6 7 8 9 |
local function fn(Sim) [...] inst:AddComponent("dapperness") inst.components.dapperness.dapperness = TUNING.DAPPERNESS_MED return inst end |