Yagababa
Regular
Hey all,
I'm trying to learn how to work with module_presentations, but can't seem to get even a simple example to work:
I'm just trying to put a block on the screen, but it flickers on for a fraction of a second then goes away. Does anyone know what I'm doing wrong?
I'm trying to learn how to work with module_presentations, but can't seem to get even a simple example to work:
Code:
("player_blood_screen_1", prsntf_read_only, 0, [
(ti_on_presentation_load,
[
(create_mesh_overlay, "$g_blood_screen_state", "mesh_mp_score_a"),
(position_set_x, pos1, 1000),
(position_set_y, pos1, 1000),
(overlay_set_size, "$g_blood_screen_state", pos1),
(position_set_x, pos1, 0),
(position_set_y, pos1, 0),
(overlay_set_position, "$g_blood_screen_state", pos1),
(presentation_set_duration, 999999),
]),
(ti_on_presentation_run,
[
(create_mesh_overlay, "$g_blood_screen_state", "mesh_mp_score_a"),
(position_set_x, pos1, 1000),
(position_set_y, pos1, 1000),
(overlay_set_size, "$g_blood_screen_state", pos1),
(position_set_x, pos1, 0),
(position_set_y, pos1, 0),
(overlay_set_position, "$g_blood_screen_state", pos1),
(presentation_set_duration, 999999),
]),
]),
I'm just trying to put a block on the screen, but it flickers on for a fraction of a second then goes away. Does anyone know what I'm doing wrong?