Colobot Wiki


penup ( );

The instruction penup(); instructs the bot to have the pen up, so it stops drawing. The pen is up by default, so it should be used only after using pendown();.

Return value: int[]

Normally an error stops the program. You can prevent the program from stopping on errors by using the errmode(0) instruction. A value different from zero if an error occurred is then returned by penup();.

== 0 The pen is now up

!= 0 The instruction did not work

See also[]