User Tools

Site Tools


modding:function:objgetordergiver

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

modding:function:objgetordergiver [2014/12/27 04:40] – external edit 127.0.0.1modding:function:objgetordergiver [2017/06/26 02:52] (current) 0xabcdef
Line 5: Line 5:
 See [[http://xelerus.de/index.php?s=functions&function=103|objGetOrderGiver at Xelerus]] See [[http://xelerus.de/index.php?s=functions&function=103|objGetOrderGiver at Xelerus]]
  
-^ Syntax | (objGetOrderGiver spaceObject) |+^ Syntax | (objGetOrderGiver spaceObject [destroyReason]) |
 ^ Arguments | spaceObject: The space object that you want to get the order giver from. | ^ Arguments | spaceObject: The space object that you want to get the order giver from. |
 +^ | destroyReason: ? |
 ^ Returns | spaceObject: The order giver. | ^ Returns | spaceObject: The order giver. |
 ^ Category | [[orders]], [[spaceobject]] | ^ Category | [[orders]], [[spaceobject]] |
 ^ Description | Gets the space object that gave a order to the passed in space object. | ^ Description | Gets the space object that gave a order to the passed in space object. |
 +
 +Note: Order giver is set only by **objCommunicate** and orders that assign the ship as a subordinate to another object.
 +
 +=== destroyReason ===
 +
 +  * ""
 +
 +  * "damage"
 +  * "runningOutOfFuel"
 +  * "radiationPoisoning"
 +  * "self"
 +  * "disintegration"
 +
 +  * "weaponMalfunction"
 +  * "ejecta"
 +  * "explosion"
 +  * "shatter"
 +  * "playerCreatedExplosion"
 +
 +  * "enteredStargate"
 +  * "custom"
 +  * "gravity"
 +  * "powerFailure"
 +  * "ascended"
  
 === Example === === Example ===
modding/function/objgetordergiver.1419655255.txt.gz · Last modified: 2014/12/27 04:40 by 127.0.0.1