as it is described in the manual at bmap_lock page, it's not allowed to use bmap_lock before the first frame, and in your code there is no level loaded. put a level_load(NULL); in the beginning and a wait(1); it should work fine.


Free world editor for 3D Gamestudio: MapBuilder Editor