|
inlineprotected |
Energy manager: Attempts to plug this device into the energy_source. Returns true if the action was successfull, or false if not (due to plug incompatibility or no free socket on the receiver). The ID of the power socket is chosen automatically unless optional parameter socket_id is used (starting from 0). If the given ID is not free then a free socket is found.
См. определение в файле ComponentEnergyManager.c строка 735
Перекрестные ссылки Component::m_ThisEntityAI.
Используется в OnAttachmentAdded().