Discuss this page on this page's Talk Page

objGetSovereign

See objGetSovereign at Xelerus

Syntax (objGetSovereign spaceObject)
Arguments spaceObject: The space object that you want to get the sovereign of.
Returns number: The UNID of the sovereign.
Category ai, spaceObject, UNID
Description Finds and returns sovereign of the space object.

Basic space object function.

Example

(objGetSovereign gplayership)

Returns 4097, that is the decimal equivalent of 0x00001001, the UNID of the sovereign of the player: svPlayer

Return to Functions list