User Tools

Site Tools


modding:function:objgetdisposition

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 Space Object functions list

Return to functions list

modding/function/objgetdisposition.txt · Last modified: 2017/02/04 18:00 by 0xabcdef