You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: help/cbot/E/object.txt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ Use this type for variables that contain the characteristics of an object, be it
15
15
\c;object object.load \n;Object carried by the bot
16
16
\c;\l;int\u cbot\int; object.team \n;The object's team (see \l;code battles\u battles;)
17
17
\c;\l;point\u cbot\point; object.velocity \n;Velocity of the object
18
+
\c;\l;bool\u cbot\bool; object.dead \n;Is the alien dead?
18
19
19
20
Also, some objects have additional methods (instructions). See them in \l;the main list\u cbot; in the \c;"Instructions specific for some objects" section.
20
21
@@ -63,6 +64,9 @@ The bot's team. Used in \l;code battles\u battles;. If the object has no team as
63
64
\s;\c;velocity\n;
64
65
Current velocity of the object. Should be treated as a three-dimensional vector.
65
66
67
+
\s;\c;dead\n;
68
+
True if the object is an alien and was recently killed (while the death animation is playing). Note that accessing this property or any other property after the death animation finishes will cause an error that stops the program.
69
+
66
70
\b;Examples
67
71
The type \c;object\n; returns the special value \c;\l;null\u cbot\null;\n; when the object does not exist. For example:
0 commit comments