Difference between revisions of "Manual:DIL Manual/visible()"
Jump to navigation
Jump to search
(XML import) |
(XML import) |
||
| Line 1: | Line 1: | ||
| + | <span id="bfvis"></span> | ||
| + | integer visible(u1 : unitptr, u2 : unitptr) | ||
| + | u1: The character who is looking at u2 | ||
| + | u2: The unit which the character u1 is trying to see. | ||
| + | return: TRUE if u1 can see u2, FALSE otherwise. | ||
| + | Example: if (visible(self, victim)) ... | ||
| − | + | ---~---~---~---~---~---~---~---~--- | |
<span id="bfvis"></span> | <span id="bfvis"></span> | ||
integer visible(u1 : unitptr, u2 : unitptr) | integer visible(u1 : unitptr, u2 : unitptr) | ||
Latest revision as of 22:39, 4 December 2025
integer visible(u1 : unitptr, u2 : unitptr) u1: The character who is looking at u2 u2: The unit which the character u1 is trying to see. return: TRUE if u1 can see u2, FALSE otherwise. Example: if (visible(self, victim)) ...
---~---~---~---~---~---~---~---~---
integer visible(u1 : unitptr, u2 : unitptr) u1: The character who is looking at u2 u2: The unit which the character u1 is trying to see. return: TRUE if u1 can see u2, FALSE otherwise. Example: if (visible(self, victim)) ...
---~---~---~---~---~---~---~---~---