Move unit to slot B co-ordinates

Does anyone know of a way to move a unit from a specific co-ordinate to the co-ordinate in slot B? Essentially, I want to move a unit
from a specific co-ordinate to the nearest traversable space similar to when a rescuer dies and drops the unit they’re carrying.

Use MOVENEXTTO with speed 65535 (instant). If there isn’t a unit at the coord to move near to, then load one there using SPAWN_NPC unitID (-1) so it’ll spawn at sB coords. Just make the npc invisible.

You can also do this with the FindFreeTile and SetUnitStatus patches when paired together.

1 Like