Difference between revisions of "DCS func hasAttribute"
From DCS World Wiki - Hoggitworld.com
m (1 revision imported) |
|||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
|par4= | |par4= | ||
− | |desc= Returns a boolean value if the object in question has the passed attribute. See db_attibutes.lua in C:\Program Files\Eagle Dynamics\DCS World\Scripts\Database for more details. Additionally attributes for each object are defined within their DB lua file. | + | |desc= Returns a boolean value if the object in question has the passed attribute. See [[DCS_enum_attributes|Article list of Attributes]] or db_attibutes.lua in C:\Program Files\Eagle Dynamics\DCS World\Scripts\Database for more details. Additionally attributes for each object are defined within their DB lua file. DB files provided on [https://github.com/mrSkortch/DCS-miscScripts/tree/master/ObjectDB github] for reference. |
Function also works with [[DCS_Class_Unit|Unit]], [[DCS_Class_Weapon|Weapon]], [[DCS_Class_Static_Object|Static Object]], [[DCS_Class_Scenery_Object|Scenery Object]], [[DCS_Class_Airbase|Airbase]] | Function also works with [[DCS_Class_Unit|Unit]], [[DCS_Class_Weapon|Weapon]], [[DCS_Class_Static_Object|Static Object]], [[DCS_Class_Scenery_Object|Scenery Object]], [[DCS_Class_Airbase|Airbase]] | ||
Line 43: | Line 43: | ||
}} | }} | ||
[[Category:Class Functions|hasAttribute]] | [[Category:Class Functions|hasAttribute]] | ||
+ | [[Category:Game Patch 1.2.0|hasAttribute]] |