8000 Merge pull request #98 from hexagonrecursion/dead · colobot/colobot-data@f696f18 · GitHub
[go: up one dir, main page]

Skip to content

Commit f696f18

Browse files
authored
Merge pull request #98 from hexagonrecursion/dead
Document object.dead
2 parents d1f35dd + 6ee182a commit f696f18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

help/cbot/E/object.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Use this type for variables that contain the characteristics of an object, be it
1515
\c;object object.load \n;Object carried by the bot
1616
\c;\l;int\u cbot\int; object.team \n;The object's team (see \l;code battles\u battles;)
1717
\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?
1819

1920
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.
2021

@@ -63,6 +64,9 @@ The bot's team. Used in \l;code battles\u battles;. If the object has no team as
6364
\s;\c;velocity\n;
6465
Current velocity of the object. Should be treated as a three-dimensional vector.
6566

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+
6670
\b;Examples
6771
The type \c;object\n; returns the special value \c;\l;null\u cbot\null;\n; when the object does not exist. For example:
6872
\c;

0 commit comments

Comments
 (0)
0