// it'll be available only when the module is present
@if(ModuleExists("Other.Mod"))
// you can write two different versions of a function based on existence of another module
// imports from Other.Mod will be available only in the first version, since the import was conditional
@if(ModuleExists("Other.Mod"))
func Testing() -> Int32 {
@if(!ModuleExists("Other.Mod"))
func Testing() -> Int32 {
// you can also conditionally define a method wrapper/replacement
@if(!ModuleExists("Other.Mod"))
@wrapMethod(PlayerPuppet)
protected cb func OnGameAttached() -> Bool {