GrimyBunyip Posted February 23, 2016 Posted February 23, 2016 You can do: class'CLASS_NAME'.default.VARIABLE_PROPERTYto grab a var, can you do the same for functions?
eXecator Posted February 23, 2016 Posted February 23, 2016 For static functions you can useclass'CLASS_NAME'.static.STATIC_FUNCTION()
davidlallen Posted February 23, 2016 Posted February 23, 2016 See also:http://forums.nexusmods.com/index.php?/topic/3834670-cross-mod-function-calls/&do=findComment&comment=34897850
eXecator Posted February 23, 2016 Posted February 23, 2016 To clarify. If you want to call a public static function of a class you dont have an instance of useclass'CLASS_NAME'.static.STATIC_FUNCTION()If you want to call a public non-static function of a class -> get an instance If you want to do anything with a class not in your package/mod (except XComGame stuff) -> you might want to look at http://forums.nexusmods.com/index.php?/topic/3834670-cross-mod-function-calls/
Recommended Posts