Welcome to the Creatures Wiki! Log in and join the community.
Difference between revisions of "ACCG"
Jump to navigation
Jump to search
m (what is the 'ACCG property', please? stub.) |
m (Errrm, this isn't a stub, it's fully documented...) |
||
Line 34: | Line 34: | ||
</pre> | </pre> | ||
[[category:C3 CAOS Commands]] | [[category:C3 CAOS Commands]] | ||
− |
Revision as of 18:53, 4 September 2005
ACCG is a CAOS command used set or output the ACCG property of an agent.
ACCG for Input
Syntax: ACCG amount(int)
Standalone command.
Sets the acceleration due to gravity of an agent in pixels per tick, the agent will gain X velocity, negative or positive, on the Y-axis per tick.
ACCG for Output
Syntax: ACCG
Used in place of a numeric constant or variable.
Returns the number stored in the current TARGs ACCG property.
Examples
ELAS being used in the command line to make HOTS fall at 20 pixels per tick squared:
TARG HOTS ACCG 20
Being used in the command line to make HOTS fall upwards at 20 pixels per tick squared:
TARG HOTS ACCG -20
Being used in the command line to output the ACCG of HOTS:
TARG HOTS OUTV ACCG