Welcome to the Creatures Wiki! Log in and join the community.

SQRT

From Creatures Wiki
Jump to navigation Jump to search

SQRT is a CAOS function that returns the square root of a number.

Usage[edit]

Syntax: SQRT value(float)

Returns as a float the square root of the value.

Example[edit]

Finds the actual distance between the center points of the target agent and the current selected norn:

setv va00 disq norn
setv va01 sqrt va00