I am trying to move a scene prop relatively from the player's position. However my knowledge of
the Module System synthax does not go that deep.
The intention is to move a scene prop, using the arrow keys. This works well with the common y and x coordinats of the map, using this script:
This will move the scene prop to the right side, only if the player is looking in the desired direction.
Can you guys help to get this working, even when the player looks at another direction?
I do not require additional information about rotation or relative rotation from player's pos.
I guess I need one of these two:
position_transform_position_to_local
or
position_transform_position_to_parent
the Module System synthax does not go that deep.
The intention is to move a scene prop, using the arrow keys. This works well with the common y and x coordinats of the map, using this script:
Code:
(0, 0, 0, [(eq, "$colony_is_building", 1), (key_is_down, key_right),],
[(prop_instance_get_position, pos0, reg0),
(position_move_x, pos0, "$colony_building_movement_pos"),
(prop_instance_animate_to_position, reg0, pos0, 1),
]),
This will move the scene prop to the right side, only if the player is looking in the desired direction.
Can you guys help to get this working, even when the player looks at another direction?
I do not require additional information about rotation or relative rotation from player's pos.
I guess I need one of these two:
position_transform_position_to_local
or
position_transform_position_to_parent