Page MenuHomeFeedback Tracker

(cursorObject != getCursorObjectParams select 0) when off map
New, NormalPublic

Description

cursorObject will return objNull when the player is facing an object that is on a carrier or destroyer that is off map (outside the worldSize bounds).

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce

Create a Tanoa editor session. Place two carriers, one on map and one off map. Place a playable character on each, near the island tower. Use the debug console to watch "getCursorObjectParams select 0" and "cursorObject". Start the session with each of the two playable roles, look at the island tower and note the values of the two watched expressions. The carrier that is off the map will display <NULL-object> for cursorObject while the carrier that is on the map will give a valid object identifier. In both cases, getCursorObjectParams will return a valid object identifier.

Additional Information

This came up when staging an operation out of sight of the land masses of a water-edged map (Tanoa). A number of game systems didn't work because they relied on cursorObject. I was able to work around the problem by modifying those systems to rely on getCursorObjectParams.

Event Timeline

JB47394 created this task.May 27 2020, 6:26 PM