Hi, yes that is one way out of many. What I would do to avoid this issue is.
HINT:Sometimes AI (Artificial Intelligence) can be a bit tricky when they are only programmed to do certain things otherwise need to be performed by the user (you)
Use that command, setcaptive true. But I would also use these commands.
Allowfleeing 0, also insert an invisible H pad on the map so the helo can land at a specific place, then use waypoints appropriately.
Also you could use the careless command.
helo1 setbehaviour "CARELESS" or use it in the waypoint selection. This careless behavior will make them not care about the enemy.
Check the command reference for these commands and how they are used.
. hope this helps a little.
http://www.ofpec.com/COMREF/