setvariable-towards
angle distance value
Parameters:
angle |
Number |
angle from caller |
distance |
Number |
distance from caller |
value |
Anything |
value to set the variable to |
Description:
Sets the value of the variable
specified at distance distance and angle angle from the caller to value
Examples:
sethappiness-towards 0 1 5
sets the happiness of the turtle directly in front of and one space beyond the caller to 5
Notes:
variables must first be declared in a turtles-own, breeds-own, patches-own or globals
Related Commands:
set
setvariable
setvariable-at
setvariable-of
variable-towards