hi everyone I want to add a usable scene prop to my scene. I want it to work like a chest, which we can interact with.
This is the code I added to module_scene_props
and then I added this code to module_scripts, under "game_get_use_string"
but when I get into the scene nothing happens even if I get close to my scene prop. whats wrong anyone helpp
This is the code I added to module_scene_props
Code:
("gomu",(spr_use_time(0)),"chest_b","bo_chest_b", [check_item_use_trigger, (ti_on_scene_prop_use,[
(entry_point_get_position, pos2, 8),
(set_spawn_position, pos2),(spawn_scene_prop, "spr_fire_big"),
]),]),
Python:
(else_try),
(eq, ":scene_prop_id", "spr_gomu"),
(str_store_string, s0, "@Dig In"),