Hi all,
In a mission I want the player to be able to teamSwitch between pilot and gunner in a AH-64D named "apache", the group is called "heloheroes". The idea is to control the helo as a pilot and get it in a good scouting position. Then you should switch to the gunner and use the weapons view (FLIR) to scout the terrain.
However, when flying as pilot and keeping a certain height, I want to be able to switch to the gunner and keeping the helo at the same altitude and position. But, the AI pilot keeps returning to standard height (50m ?) despite my scripting commands.
Trigger, repeatedly
Condition:
isPlayer apacheg AND ! isPlayer apached
On activation:
heloheroes selectLeader apacheg; apache flyInHeight (getpos apache select 2); hint format ["%1", getpos apache select 2]
Hint works, you become leader, but the helo doesn't "flyInHeight".
Does anyone have any ideas?
Thanks,
Laggy
EDIT:
This works:
apache flyinheight heloHeight;
sleep 1;
heloheroes move getpos apache;