Source note:This page rendered plugin-owned docs or generated metadata inside unified Astro docs shell.
After the ageing component's age_state increased a number of times, call add(int) on a target node and/or resource to add some value to those targets
Source: addons/calendar_time/ageing/add_when_aged.gd
Syntax
class AddWhenAged extends NodeMembers
| Name | Kind | Summary |
|---|---|---|
age_component | Property | Context for the AgeState. Can set path in inspector or defaults to parent node. |
target_node | Property | The receipient of add(amount : float) function calls It must implement some version of add(amount : float) |
target_age_state_resource | Property | Target that is a resource instead of a node. The receipient must implement add(amount : float) |
age_amount | Property | Add this value to the target_node and / or target_age_state_resource when the period elapses |
period | Property | Number of age increases that must occur between add calls |
last_update_age | Property | The last age_state that this component used to calculate adds |
total_adds | Property | Number of adds this component has performed |
handle_total_age_progressed | Method | |
target_node_set | Property | |
target_resource_set | Property | |
ages_since_update | Property | |
times_to_add | Property | |
num_times_added | Property |
Source
addons/calendar_time/ageing/add_when_aged.gd
Plugin docs root:gdscript/plugins/calendar_time_dev/docs