How to build a single bank in scripts


(jiangli) #1

studio.project.build(param)

I don’t know how to fill the ‘param’

and where can I found the scripting API for scripts/*.js


(Thuan Seah Tan) #2

Hi,

Here are some examples of how to build banks using this function:

Single Bank:
studio.project.build({ banks: ‘Weapons’ }); // all platform
studio.project.build({ banks: ‘Weapons’, platforms: ‘Desktop’}) // only the Desktop platform
studio.project.build({ banks: ‘Weapons’, platforms: [‘Desktop’, ‘PlayStation 4’] }); // on both Desktop and Playstation 4 platform

Multiple Banks:
studio.project.build({ banks: [‘Character’, ‘Weapons’], platforms: ‘Desktop’ });
studio.project.build({ banks: [‘Character’, ‘Weapons’], platforms: [‘Desktop’, ‘PlayStation 4’] });