This code added to mission templates, I added spr_ship to point A, entry_point 21 is point B
When this code woriking spr_ship moving point A to point B,
but when I enter scene after spr_ship doesnt spawn point A, it spawn point B
I want to starting position of spr_ship must point A, every I enter scene.
When this code woriking spr_ship moving point A to point B,
but when I enter scene after spr_ship doesnt spawn point A, it spawn point B
I want to starting position of spr_ship must point A, every I enter scene.
Code:
(2, 0, ti_once, [],[
(entry_point_get_position, pos21, 21),
(scene_prop_get_instance,":prop","spr_ship", 0),
(prop_instance_get_starting_position, pos1, ":prop"),
(scene_prop_get_instance,":prop","spr_ship", 0),
(prop_instance_get_position, pos1, ":prop"),
(get_distance_between_positions, ":dist_falcon2", pos1, pos21),
(store_div,":falcon2_hiz",":dist_falcon2",3),
(prop_instance_animate_to_position, ":prop", pos21, ":falcon2_hiz"),
]),
Last edited by a moderator: