[[objGetDisposition Talk Page|Discuss this page]]
=== objGetDisposition ===
^ Syntax | (objGetDisposition obj targetObj) |
^ Arguments | obj: The object you want the disposition of |
^ | targetObj: the object you want to check obj against |
^ Returns | Disposition|
^ Category | [[spaceObject functions]]|
^ Description | Checks the disposition of the first object's sovereign toward the target object's sovereign. |
====Disposition=====
'enemy
'friend
'neutral
=== Example ===
(objGetDisposition gSource gPlayership)
Returns the disposition of the source to the playership. The following code is equivalent.
(sovGetDisposition (objGetSovereign gSource) (objGetSovereign gPlayerShip))
Return to [[modding:function:spaceObject_functions|Space Object functions]] list
Return to [[modding:functions:]] list