Welcome to the Creatures Wiki! Log in and join the community.
FRAT
Jump to navigation
Jump to search
FRAT is a CAOS command used to slow down the ANIMation frame rate of an agent.
Usage[edit]
Syntax: FRAT (command) FRAMERATE (integer)
This sets the frame rate on the TARGet agent. When the agent is a compound agent, the part affected by FRAT can be set with the PART command. Allowable rates are from 1 (normal speed) to 255. FRAT must be reset manually to 1 after being used.
Example[edit]
Note the use of OVER in the following examples to force the code to wait until the animation is complete.
In a compound agent:
part 5 frat 3 anim [3 0 3 0 3 0] over frat 1
In a simple agent:
frat 3 anim [3 0 3 0 3 0] over frat 1