Index

SetUnitConnectable

SetUnitConnectable(<-unit <-bool)

Description

Sets whether the unit can connect to other connectable units (like towers and pylons).

Note, the frame this is set, it will interfere with any dispatched packets sent from this unit and they won't be created, so avoid calling it every frame if you're trying to send packets.

Examples

SetUnitConnectable(self false)

Index