colobot-data/help/D/cbot/shield.txt

20 lines
834 B
Plaintext

\b;Instruction \c;shield\n;
Syntax:
\s;\c;shield ( oper );\n;
Activates or deactivates the shield of the \l;ahielder\u object\botshld;. You can of course move the shielder when the shield is active. It protects all objects that are inside the shielded sphere from enemy fire. The radius of the sphere can range between 10 and 25 meters.
\t;oper: \c;\l;float\u cbot\float;\n;
\c;1\n; activates the shield.
\c;0\n; deactivates the shield
A normal \l;power cell\u object\power; fully charged can maintain the shield active during 20 seconds. When the cell is empty, the shield deactivates.
\t;radius: \c;\l;float\u cbot\float;\n;
Radius of the shield, ranging between 10 and 25 meters.
\t;Return value: \c;\l;void\u cbot\void;\n;
None.
\t;See also
\l;Programming\u cbot;, \l;types\u cbot\type; and \l;categories\u cbot\category;.