15 m_FollowerRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/camera_tools/event_tracker.layout",
null);
16 m_FollowerButton = m_FollowerRoot.FindAnyWidget(
"IconPanel");
17 m_IndexWidget =
TextWidget.Cast(m_FollowerRoot.FindAnyWidget(
"Text"));
23 m_IndexWidget.SetText(m_Index.ToString());
24 m_FollowerRoot.SetHandler(
this);
25 CreateFollowedObject(type);
32 delete m_FollowerRoot;
38 return m_FollowedObject.GetType();
45 if (
p.GetInventory().CreateAttachment(
item))
56 p.GetInventory().CreateAttachment(
item);
68 if (m_HandsItemObj && m_FollowedObject)
71 GetGame().ObjectDelete(m_HandsItemObj);
84 string type = m_FollowedObject.GetType();
85 DestroyFollowedObject();
86 CreateFollowedObject(type);
vector m_Position
Cached world position.
ServerBrowserMenuNew m_Menu
void SetHandsItem(string item)
void AddItem(string item)
array< string > GetItems()
ref array< string > m_Items
void CTActor(int index, vector pos, vector orient, string type, array< string > items, string hands_item, CameraToolsMenu parent)
void SetItems(array< string > items)
inventory for plain man/human
proto native EntityAI CreateInHands(string typeName)
creates new entity in hands
override bool LocalDestroyEntity(notnull EntityAI item)
proto native CGame GetGame()