-
Notifications
You must be signed in to change notification settings - Fork 52
Manual:DIL Manual opponent()
iamnove edited this page Jan 18, 2023
·
51 revisions
integer opponent(u1 : unitptr, u2 : unitptr) u1, u2: Two characters return: TRUE if u1 is in combat with u2, FALSE otherwise. Example: if (opponent(self, victim)) ...
When in a combat, you are usually only melee-attacking one opponent, although you may have many other opponents. This function lets you check if you are directly / indirectly an opponent to another unit.
---~---~---~---~---~---~---~---~---