User Tools

Site Tools


modding:function:typgetproperty

Discuss this page on this pages TalkPage

typGetProperty

Syntax (typGetProperty unid property)
Arguments unid: The unid you want to get the property from.
property: property you want to retrieve
Returns value
Category type_functions, unid, property
Description Use for retrieving a property from a type.

Properties

		
 'apiVersion
 'class
 'extension
		
Player ships
 'dockServicesScreen
 'shipStatusScreen
 'startingSystem
Ships
 'armorCount
 'armorHP
 'armorItems
 'balanceType
 'cargoSpace
 'combatStrength
 'damage
 'defaultSovereign
 'defenseStrength
 'deviceSlots
 'deviceSlotsNonWeapons
 'deviceSlotsWeapons
 'deviceItems
 'dodgeRate
 'driveImage
 'explosionType
 'fireAccuracy
 'fireRangeAdj
 'fireRateAdj
 'genericName
 'hp
 'hullMass
 'installDeviceMaxLevel
 'launcher
 'launcherUNID
 'level
 'maneuver
 'manufacturer
 'mass
 'maxArmorMass
 'maxCargoSpace
 'maxRotation
 'maxSpeed
 'name
 'primaryArmor
 'primaryArmorUNID
 'primaryWeapon
 'primaryWeaponRange
 'primaryWeaponRangeAdj
 'primaryWeaponUNID
 'regen
 'score
 'size
 'shield
 'shieldsUNID
 'thrust
 'thrustToWeight
 'thrusterPower
 'treasureValue
 'wreckChance

Example

(typGetProperty shipUNID 'size)

Returns the “size” property for the given ship unid.

Return to type functions list

Return to Functions list

modding/function/typgetproperty.txt · Last modified: 2017/03/30 04:30 by xephyr