He fang shen sheng (1981)
Shih is a down on his luck private detective, who has started working as an extra in films His luck doesnt improve and he accidentally blows up a car on set, destroying a films finale and almost killing the director