#THIS SCRIPT IS NEEDED FOR ONI-TRAINER TO USE THE MESSAGE-, SPAWN AND INGAME-MENU-FUNCTIONS! #Put this script in any levels folders in which you want to use this function. #Then add "fork OniPlayer" to the line above "start" in the lvl's main.bsl. var int OnyPlayer_script_start = (12345); var int OniPlayer_disp_msg = (255); var int OniPlayer_menu_active = (255); var int OniPlayer_spawn = (255); var int OniPlayer_spawned = (1); func void OniPlayer(void){ chr_draw_all_characters = 1 fork OniPlayer_msg_check fork OniPlayer_spawn_check fork OniPlayer_ingame_menu } func void OniPlayer_msg_check(void){ if(OniPlayer_disp_msg eq 1){ dmsg "[w. MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE MESSAGE]" OniPlayer_disp_msg = 2 } sleep 20 fork OniPlayer_msg_check } func void OniPlayer_ingame_menu(void){ if(OniPlayer_menu_active eq 1){ dmsg "[a1.MENU MENU MENU MENU MENU]" dmsg "[b2.MENU MENU MENU MENU MENU]" dmsg "[c3.MENU MENU MENU MENU MENU]" dmsg "[d4.MENU MENU MENU MENU MENU]" dmsg "[e5.MENU MENU MENU MENU MENU]" } sleep 15 fork OniPlayer_ingame_menu }