Discuss this page on this pages [[objIsEnemy Talk Page|TalkPage]]
=== objIsEnemy ===
See [[http://xelerus.de/index.php?s=functions&function=118|objIsEnemy at Xelerus]]
^ Syntax | (objIsEnemy spaceObject spaceObject) |
^ Arguments | spaceObject: The space object you want to find enemy of. |
^ | spaceObject: The space object you want to see if is an enemy of the first space object. |
^ Returns | condition: True if the space objects are enemies. Nil otherwise. |
^ Category | [[0.99]], [[condition query]], [[spaceobject]] |
^ Description | Returns True if the space objects are enemies. |
=== Example ===
(objIsEnemy gplayership)
Returns Nil. (the player isn't there own enemy).
(objIsEnemy gPlayerShip target)
Assume target is a variable that points to a Charon Pirate Gunship. Returns True.
Return to [[:Functions]] list