598 B
598 B
Function: Harvest(player, node)
Description: Forces a harvest action on the specified harvestable object or resource node. When called on a harvestable spawn (like a resource node), it attempts to collect from it as if a player harvested it.
Parameters:
player
(Spawn) - Spawn object representingplayer
.node
(Spawn) - Spawn object representingnode
.
Returns: None (the harvesting results — items or updates — are handled by the system).
Example:
-- From Spells/Commoner/harvest.lua
function cast(Caster, Target)
Harvest(Caster, Target)
end