give_birth()
Create a new agent as an offspring of the current agent.
Synopsis
give_birth()
Description
This function creates a new agent who is the offspring of the acting agent. The race of the child is the same as the parent. The sex of the child is randomly assigned with even probability between male and female.
Parameters
This function has no parameters.
Examples
An agent with ID 0001
can be selected to give birth with the following statement.
if (id == 0001) then give_birth()
See Also
- ref:
die()