Page MenuHomeFeedback Tracker

Expand script command "isKindOf" so that it can check other configs than cfgVehicles
Closed, ResolvedPublic

Description

The script command "isKindOf" is pretty useful but it would be nice to check other configs like CfgWeapons with it. At the moment it returns false when used with CfgWeapons even if the class is present.

Details

Legacy ID
4247942932
Severity
None
Resolution
Fixed
Reproducibility
N/A
Category
Scripting
Steps To Reproduce

check = "arifle_MX_F" isKindOf "Rifle";
hint format["%1", check];

-> check is false even though the MX Rifle is a subclass of "Rifle"

Event Timeline

trnapster edited Additional Information. (Show Details)
trnapster set Category to Scripting.
trnapster set Reproducibility to N/A.
trnapster set Severity to None.
trnapster set Resolution to Fixed.
trnapster set Legacy ID to 4247942932.May 7 2016, 4:14 PM

while there are a few other simple ways of checking this, it would be handy if isKindOf and TypeOf worked on most configs