6 [
Attribute(
"", UIWidgets.EditBox,
"Static reference to entity with smart action")]
7 string m_sStaticEntityName;
9 [
Attribute(
"", UIWidgets.EditBox,
"Tag of the smart action")]
10 string m_sSmartActionTag;
12 IEntity m_SmartActionEntity;
14 void GetSmartActionEntity(out IEntity smartActionEntity, out
string smartActionTag)
16 if (m_SmartActionEntity)
18 smartActionEntity = m_SmartActionEntity;
22 IEntity ent =
GetGame().GetWorld().FindEntityByName(m_sStaticEntityName);
24 smartActionEntity = ent;
27 Debug.Error(
"Unspecified smart action tag");
31 void SetSmartActionEntity(IEntity entityWithSmartAction,
string smartActionTag)
33 m_SmartActionEntity = entityWithSmartAction;