⚙️ function core_debug_addObjectPathStep(...)
Last updated:2/12/2026
URL
https://github.com/42core-team/monorepo/blob/dev/client_lib/src/public/debug.c#L54
Description
Used to build a debug path which displays where a unit will move next in the visualizer. This is done by calling the function multiple times, one for each grid tile the unit is planning on traversing, which will then be appended together by the core library for your convenience.
Opponents cannot see your debug path during the game, but may be able to view it once the game has concluded through the visualizer.
Signature
void core_debug_addObjectPathStep(const t_obj *unit, t_pos pos);Parameters
const t_obj *unit: The unit which the debug path step will be attached to.t_pos pos: The position the unit is planning to move to.
Return
void
Examples
for (size_t j = 0; j < planned_path.length; j++)
core_debug_addObjectPathStep(unit, planned_path.steps[j]);