Page MenuHomeFeedback Tracker

at least some pilotCam commands dont update for AI pilots
New, NormalPublic

Description

the values of "getPilotCameraDirection" and "getPilotCameraRotation" will not update if the pilot is an AI.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
AI Issues
Steps To Reproduce
  1. open a new map in 3den
  2. place a unit and make it the player
  3. place B_Plane_Fighter_01_Stealth_F with the following init:

this flyInHeight 1000;
_wp = group this addWaypoint [player, 0];
_wp setWaypointType "LOITER";
_wp setWaypointLoiterType "CIRCLE_L";
_wp setWaypointLoiterRadius 1000;
this setPilotCameraTarget player;

null = this spawn {

_run = true;
while {_run} do {
_dir = getPilotCameraDirection _this;

hint format["cam1 :%1",_dir];
sleep 1;
};

};

and make it playable

  1. the values in the hint stay the same until you sitch (with "u") to the pilot and will get "frozen" again when you switch back

Event Timeline