36 if (
item.HasQuantity())
37 item.SetQuantity(
item.GetQuantityMax());
450 return Vector(0, 0, 0).ToString(
false);
530 return GetObject().GetInventory().CanAddAttachment(
e);
548 for (
int i = 0;
i <
GetObject().GetInventory().AttachmentCount(); ++
i)
549 ret.Insert(
GetObject().GetInventory().GetAttachmentFromIndex(
i));
PluginBase GetPlugin(typename plugin_type)
static Shape DrawBox(vector pos1, vector pos2, int color=0x1fff7f7f)
static Shape DrawArrow(vector from, vector to, float size=0.5, int color=0xFFFFFFFF, int flags=0)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
void AddRotation(float add_rot)
int GetLinkedSceneObjectsCount()
void EditorShapeDeselect()
array< SceneObject > GetLinkedSceneObjects()
ref array< SceneObject > m_LinkedSceneObjects
SceneObject GetLinkedSceneObject(int i)
bool IsLinkedWithSceneObject(SceneObject scene_object)
void LinkEntityAI(EntityAI e)
void SetInitScript(string init_script)
EntityAI GetLinkedObject(int i)
TStringArray GetConfigAttachments()
void SetRotation(float rot)
ref array< int > m_LinkedSceneObjectsIndices
void SetPositionAsString(string string_pos)
void SetHealth(float value)
void EditorShapeUpdatePos()
void RemoveAttachment(EntityAI e)
void AddAttachment(string att_name)
static const int COLOR_OBJ_BBOX_NORMAL
void EditorLineAdd(SceneObject obj)
void EditorShapeSetColor(int color)
void LinkSceneObject(SceneObject scene_object, bool draw_line=true)
void EditorLineRemove(SceneObject obj)
string GetPositionAsString()
array< EntityAI > GetAttachments()
bool CanAttachment(EntityAI e)
void SetPosition(vector pos)
SceneObject Init(string obj_name, vector pos)
ref map< SceneObject, Shape > m_LinkedSceneObjectsShapes
void SceneObjectSynch(Param p)
static const int COLOR_OBJ_BBOX_SELECT
string m_ObjectNameOrigin
void UnlinkSceneObject(SceneObject scene_object)
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
array< string > TStringArray
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
const string STRING_EMPTY