<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nodward+Nichrome</id>
	<title>Multi Theft Auto: Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Nodward+Nichrome"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Nodward_Nichrome"/>
	<updated>2026-04-26T12:46:24Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=37748</id>
		<title>RU/GetPedBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=37748"/>
		<updated>2013-12-02T13:31:20Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* Пример */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Функция возвращает координаты положения определённой части тела персонажа в формате 3D.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getPedBonePosition ( ped thePed, int bone )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
*'''thePed:''' Персонаж, положение части тела которого требуется определить.&lt;br /&gt;
*'''bone:''' Часть тела, положение которой нужно определить.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Номера частей тела]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1 '''- тазобедренная часть (чуть ниже пупка)'''&lt;br /&gt;
*'''2:''' BONE_PELVIS '''- тазобедренная часть (чуть выше пупка)'''&lt;br /&gt;
*'''3:''' BONE_SPINE1 '''- позвоночник'''&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO '''- верхня часть тела (начало шеи)'''&lt;br /&gt;
*'''5:''' BONE_NECK '''- шейная часть'''&lt;br /&gt;
*'''6:''' BONE_HEAD2 '''- голова'''&lt;br /&gt;
*'''7:''' BONE_HEAD1 '''- голова'''&lt;br /&gt;
*'''8:''' BONE_HEAD '''- голова'''&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO '''- правая верхняя часть тела (чуть правее шеи)'''&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER '''- правое плечо'''&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW '''- локоть правой руки'''&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST '''- запястье правой руки'''&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND '''- кисть правой руки'''&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB '''- большой палец правой руки'''&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO '''- левая верхняя часть тела (чуть левее шеи)'''&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER '''- левое плечо'''&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW '''- локоть левой руки'''&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST '''- запястье левой руки'''&lt;br /&gt;
*'''35:''' BONE_LEFTHAND '''- кисть левой руки'''&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB '''- большой палец левой руки'''&lt;br /&gt;
*'''41:''' BONE_LEFTHIP '''- часть бедра левой ноги'''&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE '''- колено левой ноги'''&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE '''- лодыжка левой ноги'''&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT '''- ступня левой ноги'''&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP '''- часть бедра правой ноги'''&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE '''- колено правой ноги'''&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE '''- лодыжка правой ноги'''&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT '''- ступня правой ноги'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Данные подлежащие возвращению===&lt;br /&gt;
Возвращаются координаты положения x, y, z определённой части тела персонажа.&lt;br /&gt;
&lt;br /&gt;
==Пример==&lt;br /&gt;
Этот пример скрипта показывает имена/ники над головами игроков.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;,getRootElement(),&lt;br /&gt;
   function()&lt;br /&gt;
      local px, py, pz, tx, ty, tz, dist&lt;br /&gt;
      px, py, pz = getCameraMatrix()&lt;br /&gt;
      for k, v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
         tx, ty, tz = getElementPosition(v)&lt;br /&gt;
         dist = math.sqrt((px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2)&lt;br /&gt;
         if dist &amp;lt; 30.0 then&lt;br /&gt;
            if isLineOfSightClear(px, py, pz, tx, ty, tz, true, false, false, true, false, false, getLocalPlayer()) then&lt;br /&gt;
               local sx, sy, sz = getPedBonePosition(v, 5)&lt;br /&gt;
               local x,y = getScreenFromWorldPosition(sx, sy, sz + 0.3)&lt;br /&gt;
               if x then -- getScreenFromWorldPosition возвращает false(ложь), если персонаж (координата Х) не виден на экране&lt;br /&gt;
                  dxDrawText(getPlayerName(v), x, y, x, y, tocolor(150, 50, 0), 0.85 + (15 - dist) * 0.02, &amp;quot;bankgothic&amp;quot;)&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Другие функции==&lt;br /&gt;
{{Client_ped_functions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[en:GetPedBonePosition]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=GetPedBonePosition&amp;diff=25354</id>
		<title>GetPedBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=GetPedBonePosition&amp;diff=25354"/>
		<updated>2011-02-08T18:21:19Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Returns the 3D world coordinates of a specific bone of a given ped.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getPedBonePosition ( ped thePed, int bone )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' the ped you want to inspect.&lt;br /&gt;
*'''bone:''' the number of the bone to get the position of.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Bone numbers]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1&lt;br /&gt;
*'''2:''' BONE_PELVIS&lt;br /&gt;
*'''3:''' BONE_SPINE1&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO&lt;br /&gt;
*'''5:''' BONE_NECK&lt;br /&gt;
*'''6:''' BONE_HEAD2&lt;br /&gt;
*'''7:''' BONE_HEAD1&lt;br /&gt;
*'''8:''' BONE_HEAD&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST&lt;br /&gt;
*'''35:''' BONE_LEFTHAND&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB&lt;br /&gt;
*'''41:''' BONE_LEFTHIP&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the x, y, z world position of the bone.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example renders name tags above a player's head bone.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;,getRootElement(),&lt;br /&gt;
   function()&lt;br /&gt;
      local px, py, pz, tx, ty, tz, dist&lt;br /&gt;
      px, py, pz = getCameraMatrix()&lt;br /&gt;
      for k, v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
         tx, ty, tz = getElementPosition(v)&lt;br /&gt;
         dist = math.sqrt((px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2)&lt;br /&gt;
         if dist &amp;lt; 30.0 then&lt;br /&gt;
            if isLineOfSightClear(px, py, pz, tx, ty, tz, true, false, false, true, false, false, getLocalPlayer()) then&lt;br /&gt;
               local sx, sy, sz = getPedBonePosition(v, 5)&lt;br /&gt;
               local x,y = getScreenFromWorldPosition(sx, sy, sz + 0.3)&lt;br /&gt;
               if x then -- getScreenFromWorldPosition returns false if the point isn't on screen&lt;br /&gt;
                  dxDrawText(getPlayerName(v), x, y, x, y, tocolor(150, 50, 0), 0.85 + (15 - dist) * 0.02, &amp;quot;bankgothic&amp;quot;)&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;br /&gt;
&lt;br /&gt;
[[ru:GetPedBonePosition]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25353</id>
		<title>RU/GetPedBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25353"/>
		<updated>2011-02-08T18:20:25Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Функция возвращает координаты положения определённой части тела персонажа в формате 3D.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getPedBonePosition ( ped thePed, int bone )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
*'''thePed:''' Персонаж, положение части тела которого требуется определить.&lt;br /&gt;
*'''bone:''' Часть тела, положение которой нужно определить.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Номера частей тела]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1 '''- тазобедренная часть (чуть ниже пупка)'''&lt;br /&gt;
*'''2:''' BONE_PELVIS '''- тазобедренная часть (чуть выше пупка)'''&lt;br /&gt;
*'''3:''' BONE_SPINE1 '''- позвоночник'''&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO '''- верхня часть тела (начало шеи)'''&lt;br /&gt;
*'''5:''' BONE_NECK '''- шейная часть'''&lt;br /&gt;
*'''6:''' BONE_HEAD2 '''- голова'''&lt;br /&gt;
*'''7:''' BONE_HEAD1 '''- голова'''&lt;br /&gt;
*'''8:''' BONE_HEAD '''- голова'''&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO '''- правая верхняя часть тела (чуть правее шеи)'''&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER '''- правое плечо'''&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW '''- локоть правой руки'''&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST '''- запястье правой руки'''&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND '''- кисть правой руки'''&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB '''- большой палец правой руки'''&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO '''- левая верхняя часть тела (чуть левее шеи)'''&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER '''- левое плечо'''&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW '''- локоть левой руки'''&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST '''- запястье левой руки'''&lt;br /&gt;
*'''35:''' BONE_LEFTHAND '''- кисть левой руки'''&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB '''- большой палец левой руки'''&lt;br /&gt;
*'''41:''' BONE_LEFTHIP '''- часть бедра левой ноги'''&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE '''- колено левой ноги'''&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE '''- лодыжка левой ноги'''&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT '''- ступня левой ноги'''&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP '''- часть бедра правой ноги'''&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE '''- колено правой ноги'''&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE '''- лодыжка правой ноги'''&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT '''- ступня правой ноги'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Данные подлежащие возвращению===&lt;br /&gt;
Возвращаются координаты положения x, y, z определённой части тела персонажа.&lt;br /&gt;
&lt;br /&gt;
==Пример==&lt;br /&gt;
Этот пример скрипта показывает имена/ники над головами игроков.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;,getRootElement(),&lt;br /&gt;
   function()&lt;br /&gt;
      local px, py, pz, tx, ty, tz, dist&lt;br /&gt;
      px, py, pz = getCameraMatrix()&lt;br /&gt;
      for k, v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
         tx, ty, tz = getElementPosition(v)&lt;br /&gt;
         dist = math.sqrt((px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2)&lt;br /&gt;
         if dist &amp;lt; 30.0 then&lt;br /&gt;
            if isLineOfSightClear(px, py, pz, tx, ty, tz, true, false, false, true, false, false, getLocalPlayer()) then&lt;br /&gt;
               local sx, sy, sz = getPedBonePosition(v, 5)&lt;br /&gt;
               local x,y = getScreenFromWorldPosition(sx, sy, sz + 0.3)&lt;br /&gt;
               if x then -- getScreenFromWorldPosition returns false if the point isn't on screen&lt;br /&gt;
                  dxDrawText(getPlayerName(v), x, y, x, y, tocolor(150, 50, 0), 0.85 + (15 - dist) * 0.02, &amp;quot;bankgothic&amp;quot;)&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Другие функции==&lt;br /&gt;
{{Client_ped_functions}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[en:GetPedBonePosition]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25352</id>
		<title>RU/GetPedBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25352"/>
		<updated>2011-02-08T18:18:55Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Функция возвращает координаты положения определённой части тела персонажа в формате 3D.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getPedBonePosition ( ped thePed, int bone )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
*'''thePed:''' Персонаж, положение части тела которого требуется определить.&lt;br /&gt;
*'''bone:''' Часть тела, положение которой нужно определить.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Номера частей тела]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1 '''- тазобедренная часть (чуть ниже пупка)'''&lt;br /&gt;
*'''2:''' BONE_PELVIS '''- тазобедренная часть (чуть выше пупка)'''&lt;br /&gt;
*'''3:''' BONE_SPINE1 '''- позвоночник'''&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO '''- верхня часть тела (начало шеи)'''&lt;br /&gt;
*'''5:''' BONE_NECK '''- шейная часть'''&lt;br /&gt;
*'''6:''' BONE_HEAD2 '''- голова'''&lt;br /&gt;
*'''7:''' BONE_HEAD1 '''- голова'''&lt;br /&gt;
*'''8:''' BONE_HEAD '''- голова'''&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO '''- правая верхняя часть тела (чуть правее шеи)'''&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER '''- правое плечо'''&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW '''- локоть правой руки'''&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST '''- запястье правой руки'''&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND '''- кисть правой руки'''&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB '''- большой палец правой руки'''&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO '''- левая верхняя часть тела (чуть левее шеи)'''&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER '''- левое плечо'''&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW '''- локоть левой руки'''&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST '''- запястье левой руки'''&lt;br /&gt;
*'''35:''' BONE_LEFTHAND '''- кисть левой руки'''&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB '''- большой палец левой руки'''&lt;br /&gt;
*'''41:''' BONE_LEFTHIP '''- часть бедра левой ноги'''&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE '''- колено левой ноги'''&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE '''- лодыжка левой ноги'''&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT '''- ступня левой ноги'''&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP '''- часть бедра правой ноги'''&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE '''- колено правой ноги'''&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE '''- лодыжка правой ноги'''&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT '''- ступня правой ноги'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Данные подлежащие возвращению===&lt;br /&gt;
Возвращаются координаты положения x, y, z определённой части тела персонажа.&lt;br /&gt;
&lt;br /&gt;
==Пример==&lt;br /&gt;
Этот пример скрипта показывает имена/ники над головами игроков.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;,getRootElement(),&lt;br /&gt;
   function()&lt;br /&gt;
      local px, py, pz, tx, ty, tz, dist&lt;br /&gt;
      px, py, pz = getCameraMatrix()&lt;br /&gt;
      for k, v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
         tx, ty, tz = getElementPosition(v)&lt;br /&gt;
         dist = math.sqrt((px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2)&lt;br /&gt;
         if dist &amp;lt; 30.0 then&lt;br /&gt;
            if isLineOfSightClear(px, py, pz, tx, ty, tz, true, false, false, true, false, false, getLocalPlayer()) then&lt;br /&gt;
               local sx, sy, sz = getPedBonePosition(v, 5)&lt;br /&gt;
               local x,y = getScreenFromWorldPosition(sx, sy, sz + 0.3)&lt;br /&gt;
               if x then -- getScreenFromWorldPosition returns false if the point isn't on screen&lt;br /&gt;
                  dxDrawText(getPlayerName(v), x, y, x, y, tocolor(150, 50, 0), 0.85 + (15 - dist) * 0.02, &amp;quot;bankgothic&amp;quot;)&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Другие функции==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25351</id>
		<title>RU/GetPedBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25351"/>
		<updated>2011-02-08T18:09:17Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* Обязательные атрибуты */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Функция возвращает координаты положения определённой части тела персонажа в формате 3D.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getPedBonePosition ( ped thePed, int bone )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
*'''thePed:''' Персонаж, положение части тела которого требуется определить.&lt;br /&gt;
*'''bone:''' Часть тела, положение которой нужно определить.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Номера частей тела]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1 '''- тазобедренная часть (чуть ниже пупка)'''&lt;br /&gt;
*'''2:''' BONE_PELVIS '''- тазобедренная часть (чуть выше пупка)'''&lt;br /&gt;
*'''3:''' BONE_SPINE1 '''- позвоночник'''&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO '''- верхня часть тела (начало шеи)'''&lt;br /&gt;
*'''5:''' BONE_NECK '''- шейная часть'''&lt;br /&gt;
*'''6:''' BONE_HEAD2 '''- голова'''&lt;br /&gt;
*'''7:''' BONE_HEAD1 '''- голова'''&lt;br /&gt;
*'''8:''' BONE_HEAD '''- голова'''&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO '''- правая верхняя часть тела (чуть правее шеи)'''&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER '''- правое плечо'''&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW '''- локоть правой руки'''&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST '''- запястье правой руки'''&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND '''- кисть правой руки'''&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB '''- большой палец правой руки'''&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO '''- левая верхняя часть тела (чуть левее шеи)'''&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER '''- левое плечо'''&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW '''- локоть левой руки'''&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST '''- запястье левой руки'''&lt;br /&gt;
*'''35:''' BONE_LEFTHAND '''- кисть левой руки'''&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB '''- большой палец левой руки'''&lt;br /&gt;
*'''41:''' BONE_LEFTHIP '''- часть бедра левой ноги'''&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE '''- колено левой ноги'''&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE '''- лодыжка левой ноги'''&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT '''- ступня левой ноги'''&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP '''- часть бедра правой ноги'''&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE '''- колено правой ноги'''&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE '''- лодыжка правой ноги'''&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT '''- ступня правой ноги'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the x, y, z world position of the bone.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example renders name tags above a player's head bone.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;,getRootElement(),&lt;br /&gt;
   function()&lt;br /&gt;
      local px, py, pz, tx, ty, tz, dist&lt;br /&gt;
      px, py, pz = getCameraMatrix()&lt;br /&gt;
      for k, v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
         tx, ty, tz = getElementPosition(v)&lt;br /&gt;
         dist = math.sqrt((px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2)&lt;br /&gt;
         if dist &amp;lt; 30.0 then&lt;br /&gt;
            if isLineOfSightClear(px, py, pz, tx, ty, tz, true, false, false, true, false, false, getLocalPlayer()) then&lt;br /&gt;
               local sx, sy, sz = getPedBonePosition(v, 5)&lt;br /&gt;
               local x,y = getScreenFromWorldPosition(sx, sy, sz + 0.3)&lt;br /&gt;
               if x then -- getScreenFromWorldPosition returns false if the point isn't on screen&lt;br /&gt;
                  dxDrawText(getPlayerName(v), x, y, x, y, tocolor(150, 50, 0), 0.85 + (15 - dist) * 0.02, &amp;quot;bankgothic&amp;quot;)&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25350</id>
		<title>RU/GetPedBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25350"/>
		<updated>2011-02-08T18:06:01Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Функция возвращает координаты положения определённой части тела персонажа в формате 3D.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getPedBonePosition ( ped thePed, int bone )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
*'''thePed:''' Персонаж, положение части тела которого требуется определить.&lt;br /&gt;
*'''bone:''' Часть тела, положение которой нужно определить.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Bone numbers]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1 '''- тазобедренная часть (чуть ниже пупка)'''&lt;br /&gt;
*'''2:''' BONE_PELVIS '''- тазобедренная часть (чуть выше пупка)'''&lt;br /&gt;
*'''3:''' BONE_SPINE1 '''- позвоночник'''&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO '''- верхня часть тела (начало шеи)'''&lt;br /&gt;
*'''5:''' BONE_NECK '''- шейная часть'''&lt;br /&gt;
*'''6:''' BONE_HEAD2 '''- голова'''&lt;br /&gt;
*'''7:''' BONE_HEAD1 '''- голова'''&lt;br /&gt;
*'''8:''' BONE_HEAD '''- голова'''&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO '''- правая верхняя часть тела (чуть правее шеи)'''&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER '''- правое плечо'''&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW '''- локоть правой руки'''&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST '''- запястье правой руки'''&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND '''- кисть правой руки'''&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB '''- большой палец правой руки'''&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO '''- левая верхняя часть тела (чуть левее шеи)'''&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER '''- левое плечо'''&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW '''- локоть левой руки'''&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST '''- запястье левой руки'''&lt;br /&gt;
*'''35:''' BONE_LEFTHAND '''- кисть левой руки'''&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB '''- большой палец левой руки'''&lt;br /&gt;
*'''41:''' BONE_LEFTHIP '''- часть бедра левой ноги'''&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE '''- колено левой ноги'''&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE '''- лодыжка левой ноги'''&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT '''- ступня левой ноги'''&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP '''- часть бедра правой ноги'''&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE '''- колено правой ноги'''&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE '''- лодыжка правой ноги'''&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT '''- ступня правой ноги'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the x, y, z world position of the bone.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example renders name tags above a player's head bone.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;,getRootElement(),&lt;br /&gt;
   function()&lt;br /&gt;
      local px, py, pz, tx, ty, tz, dist&lt;br /&gt;
      px, py, pz = getCameraMatrix()&lt;br /&gt;
      for k, v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
         tx, ty, tz = getElementPosition(v)&lt;br /&gt;
         dist = math.sqrt((px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2)&lt;br /&gt;
         if dist &amp;lt; 30.0 then&lt;br /&gt;
            if isLineOfSightClear(px, py, pz, tx, ty, tz, true, false, false, true, false, false, getLocalPlayer()) then&lt;br /&gt;
               local sx, sy, sz = getPedBonePosition(v, 5)&lt;br /&gt;
               local x,y = getScreenFromWorldPosition(sx, sy, sz + 0.3)&lt;br /&gt;
               if x then -- getScreenFromWorldPosition returns false if the point isn't on screen&lt;br /&gt;
                  dxDrawText(getPlayerName(v), x, y, x, y, tocolor(150, 50, 0), 0.85 + (15 - dist) * 0.02, &amp;quot;bankgothic&amp;quot;)&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25349</id>
		<title>RU/GetPedBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25349"/>
		<updated>2011-02-08T17:40:07Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Функция возвращает координаты положения определённой части тела персонажа в формате 3D.&lt;br /&gt;
&lt;br /&gt;
==Синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getPedBonePosition ( ped thePed, int bone )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
*'''thePed:''' Персонаж, положение части тела которого требуется определить.&lt;br /&gt;
*'''bone:''' Часть тела, положение которой нужно определить.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Bone numbers]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1 '''- тазобедренная часть'''&lt;br /&gt;
*'''2:''' BONE_PELVIS '''- тазобедренная часть'''&lt;br /&gt;
*'''3:''' BONE_SPINE1&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO&lt;br /&gt;
*'''5:''' BONE_NECK&lt;br /&gt;
*'''6:''' BONE_HEAD2&lt;br /&gt;
*'''7:''' BONE_HEAD1&lt;br /&gt;
*'''8:''' BONE_HEAD&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST&lt;br /&gt;
*'''35:''' BONE_LEFTHAND&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB&lt;br /&gt;
*'''41:''' BONE_LEFTHIP&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the x, y, z world position of the bone.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example renders name tags above a player's head bone.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;,getRootElement(),&lt;br /&gt;
   function()&lt;br /&gt;
      local px, py, pz, tx, ty, tz, dist&lt;br /&gt;
      px, py, pz = getCameraMatrix()&lt;br /&gt;
      for k, v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
         tx, ty, tz = getElementPosition(v)&lt;br /&gt;
         dist = math.sqrt((px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2)&lt;br /&gt;
         if dist &amp;lt; 30.0 then&lt;br /&gt;
            if isLineOfSightClear(px, py, pz, tx, ty, tz, true, false, false, true, false, false, getLocalPlayer()) then&lt;br /&gt;
               local sx, sy, sz = getPedBonePosition(v, 5)&lt;br /&gt;
               local x,y = getScreenFromWorldPosition(sx, sy, sz + 0.3)&lt;br /&gt;
               if x then -- getScreenFromWorldPosition returns false if the point isn't on screen&lt;br /&gt;
                  dxDrawText(getPlayerName(v), x, y, x, y, tocolor(150, 50, 0), 0.85 + (15 - dist) * 0.02, &amp;quot;bankgothic&amp;quot;)&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25348</id>
		<title>RU/GetPedBonePosition</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/GetPedBonePosition&amp;diff=25348"/>
		<updated>2011-02-08T17:32:34Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: Created page with &amp;quot;__NOTOC__ {{Client function}} Returns the 3D world coordinates of a specific bone of a given ped.  ==Syntax== &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; float float float getPedBonePosition ( ped thePed, int b...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
{{Client function}}&lt;br /&gt;
Returns the 3D world coordinates of a specific bone of a given ped.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
float float float getPedBonePosition ( ped thePed, int bone )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Arguments===&lt;br /&gt;
*'''thePed:''' the ped you want to inspect.&lt;br /&gt;
*'''bone:''' the number of the bone to get the position of.&lt;br /&gt;
&lt;br /&gt;
[[Image:Bones.jpg|thumb|Bone numbers]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;border: 3px red solid; margin-bottom:3px; padding-left:5px;&amp;quot;&amp;gt;&lt;br /&gt;
*'''1:''' BONE_PELVIS1&lt;br /&gt;
*'''2:''' BONE_PELVIS&lt;br /&gt;
*'''3:''' BONE_SPINE1&lt;br /&gt;
*'''4:''' BONE_UPPERTORSO&lt;br /&gt;
*'''5:''' BONE_NECK&lt;br /&gt;
*'''6:''' BONE_HEAD2&lt;br /&gt;
*'''7:''' BONE_HEAD1&lt;br /&gt;
*'''8:''' BONE_HEAD&lt;br /&gt;
*'''21:''' BONE_RIGHTUPPERTORSO&lt;br /&gt;
*'''22:''' BONE_RIGHTSHOULDER&lt;br /&gt;
*'''23:''' BONE_RIGHTELBOW&lt;br /&gt;
*'''24:''' BONE_RIGHTWRIST&lt;br /&gt;
*'''25:''' BONE_RIGHTHAND&lt;br /&gt;
*'''26:''' BONE_RIGHTTHUMB&lt;br /&gt;
*'''31:''' BONE_LEFTUPPERTORSO&lt;br /&gt;
*'''32:''' BONE_LEFTSHOULDER&lt;br /&gt;
*'''33:''' BONE_LEFTELBOW&lt;br /&gt;
*'''34:''' BONE_LEFTWRIST&lt;br /&gt;
*'''35:''' BONE_LEFTHAND&lt;br /&gt;
*'''36:''' BONE_LEFTTHUMB&lt;br /&gt;
*'''41:''' BONE_LEFTHIP&lt;br /&gt;
*'''42:''' BONE_LEFTKNEE&lt;br /&gt;
*'''43:''' BONE_LEFTANKLE&lt;br /&gt;
*'''44:''' BONE_LEFTFOOT&lt;br /&gt;
*'''51:''' BONE_RIGHTHIP&lt;br /&gt;
*'''52:''' BONE_RIGHTKNEE&lt;br /&gt;
*'''53:''' BONE_RIGHTANKLE&lt;br /&gt;
*'''54:''' BONE_RIGHTFOOT&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
Returns the x, y, z world position of the bone.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
This example renders name tags above a player's head bone.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
addEventHandler(&amp;quot;onClientRender&amp;quot;,getRootElement(),&lt;br /&gt;
   function()&lt;br /&gt;
      local px, py, pz, tx, ty, tz, dist&lt;br /&gt;
      px, py, pz = getCameraMatrix()&lt;br /&gt;
      for k, v in ipairs(getElementsByType(&amp;quot;player&amp;quot;)) do&lt;br /&gt;
         tx, ty, tz = getElementPosition(v)&lt;br /&gt;
         dist = math.sqrt((px - tx) ^ 2 + (py - ty) ^ 2 + (pz - tz) ^ 2)&lt;br /&gt;
         if dist &amp;lt; 30.0 then&lt;br /&gt;
            if isLineOfSightClear(px, py, pz, tx, ty, tz, true, false, false, true, false, false, getLocalPlayer()) then&lt;br /&gt;
               local sx, sy, sz = getPedBonePosition(v, 5)&lt;br /&gt;
               local x,y = getScreenFromWorldPosition(sx, sy, sz + 0.3)&lt;br /&gt;
               if x then -- getScreenFromWorldPosition returns false if the point isn't on screen&lt;br /&gt;
                  dxDrawText(getPlayerName(v), x, y, x, y, tocolor(150, 50, 0), 0.85 + (15 - dist) * 0.02, &amp;quot;bankgothic&amp;quot;)&lt;br /&gt;
               end&lt;br /&gt;
            end&lt;br /&gt;
         end&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
{{Client_ped_functions}}&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=25202</id>
		<title>Template:RU/Elements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=25202"/>
		<updated>2011-01-16T13:14:50Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Element/Player|Игрок]]&lt;br /&gt;
* [[Element/Ped|Бот]]&lt;br /&gt;
* [[Element/Vehicle|Транспорт]]&lt;br /&gt;
* [[Element/Object|Объект]]&lt;br /&gt;
* [[Element/Pickup|Пикап]]&lt;br /&gt;
* [[RU/Элемент/Маркер|Маркер]]&lt;br /&gt;
* [[Element/Collision shape|Форма]]&lt;br /&gt;
* [[Element/Blip|Метка]]&lt;br /&gt;
* [[Element/Radar area|Radar area]]&lt;br /&gt;
* [[Element/Projectile|Projectile]]&lt;br /&gt;
* [[Element/Team|Команда]]&lt;br /&gt;
* [[Element/Console|Консоль сервера]]&lt;br /&gt;
* [[Element/Admin|Удаленный админ]]&lt;br /&gt;
* [[GUI widgets]]:&lt;br /&gt;
&amp;lt;ul&amp;gt;{{GUI_widgets}}&amp;lt;/ul&amp;gt;&lt;br /&gt;
* [[Element/TXD|TXD]]&lt;br /&gt;
* [[Element/DFF|DFF]]&lt;br /&gt;
* [[Element/COL|COL]]&lt;br /&gt;
* [[Element/Sound|Sound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[en:Template:Elements]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=25201</id>
		<title>Template:RU/Elements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=25201"/>
		<updated>2011-01-16T13:14:22Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Element/Player|Игрок]]&lt;br /&gt;
* [[Element/Ped|Бот]]&lt;br /&gt;
* [[Element/Vehicle|Транспорт]]&lt;br /&gt;
* [[Element/Object|Объект]]&lt;br /&gt;
* [[Element/Pickup|Пикап]]&lt;br /&gt;
* [[ru:Элемент/Маркер|Маркер]]&lt;br /&gt;
* [[Element/Collision shape|Форма]]&lt;br /&gt;
* [[Element/Blip|Метка]]&lt;br /&gt;
* [[Element/Radar area|Radar area]]&lt;br /&gt;
* [[Element/Projectile|Projectile]]&lt;br /&gt;
* [[Element/Team|Команда]]&lt;br /&gt;
* [[Element/Console|Консоль сервера]]&lt;br /&gt;
* [[Element/Admin|Удаленный админ]]&lt;br /&gt;
* [[GUI widgets]]:&lt;br /&gt;
&amp;lt;ul&amp;gt;{{GUI_widgets}}&amp;lt;/ul&amp;gt;&lt;br /&gt;
* [[Element/TXD|TXD]]&lt;br /&gt;
* [[Element/DFF|DFF]]&lt;br /&gt;
* [[Element/COL|COL]]&lt;br /&gt;
* [[Element/Sound|Sound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[en:Template:Elements]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=25200</id>
		<title>Template:RU/Elements</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Template:RU/Elements&amp;diff=25200"/>
		<updated>2011-01-16T13:12:17Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Element/Player|Игрок]]&lt;br /&gt;
* [[Element/Ped|Бот]]&lt;br /&gt;
* [[Element/Vehicle|Транспорт]]&lt;br /&gt;
* [[Element/Object|Объект]]&lt;br /&gt;
* [[Element/Pickup|Пикап]]&lt;br /&gt;
* [[Элемент/Маркер|Маркер]]&lt;br /&gt;
* [[Element/Collision shape|Форма]]&lt;br /&gt;
* [[Element/Blip|Метка]]&lt;br /&gt;
* [[Element/Radar area|Radar area]]&lt;br /&gt;
* [[Element/Projectile|Projectile]]&lt;br /&gt;
* [[Element/Team|Команда]]&lt;br /&gt;
* [[Element/Console|Консоль сервера]]&lt;br /&gt;
* [[Element/Admin|Удаленный админ]]&lt;br /&gt;
* [[GUI widgets]]:&lt;br /&gt;
&amp;lt;ul&amp;gt;{{GUI_widgets}}&amp;lt;/ul&amp;gt;&lt;br /&gt;
* [[Element/TXD|TXD]]&lt;br /&gt;
* [[Element/DFF|DFF]]&lt;br /&gt;
* [[Element/COL|COL]]&lt;br /&gt;
* [[Element/Sound|Sound]]&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[en:Template:Elements]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25056</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25056"/>
		<updated>2011-01-11T18:44:07Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Checkpoint.png|thumb|100px|Чекпоинт &amp;quot;Checkpoint&amp;quot;]]&lt;br /&gt;
[[Image:Ring.png|thumb|100px|Кольцо &amp;quot;Ring&amp;quot;]]&lt;br /&gt;
[[Image:Cylinder.png|thumb|100px|Цилиндр &amp;quot;Cylinder&amp;quot;]]&lt;br /&gt;
[[Image:Arrow.png|thumb|100px|Стрелка &amp;quot;Arrow&amp;quot;]]&lt;br /&gt;
[[Image:Corona.png|thumb|100px|Корона &amp;quot;Corona&amp;quot;]]&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
** '''&amp;quot;checkpoint&amp;quot;:''' Гоночный чекпоинт, очень высокий, но не бесконечный. В сингле использовался для обозначения пути гонки.&lt;br /&gt;
** '''&amp;quot;ring&amp;quot;:''' Светящееся кольцо, обычно используется для самолётов.&lt;br /&gt;
** '''&amp;quot;cylinder&amp;quot;:''' Цилиндр, представляет собой подобие чекпоинта, но не такой высокий. В сингле использовался для обозначения точек начала миссий.&lt;br /&gt;
** '''&amp;quot;arrow&amp;quot;:''' Стрелка, представляет собой перевёрнутый к земле конус. В сингле использовался как вход в здания.&lt;br /&gt;
** '''&amp;quot;corona&amp;quot;:''' Корона, представляет собой святящийся шар.&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25055</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25055"/>
		<updated>2011-01-11T18:41:58Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Image:Checkpoint.png|thumb|200px|Чекпоинт &amp;quot;Checkpoint&amp;quot;]]&lt;br /&gt;
[[Image:Ring.png|thumb|200px|Кольцо &amp;quot;Ring&amp;quot;]]&lt;br /&gt;
[[Image:Cylinder.png|thumb|200px|Цилиндр &amp;quot;Cylinder&amp;quot;]]&lt;br /&gt;
[[Image:Arrow.png|thumb|200px|Стрелка &amp;quot;Arrow&amp;quot;]]&lt;br /&gt;
[[Image:Corona.png|thumb|200px|Корона &amp;quot;Corona&amp;quot;]]&lt;br /&gt;
__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
** '''&amp;quot;checkpoint&amp;quot;:''' Гоночный чекпоинт, очень высокий, но не бесконечный. В сингле использовался для обозначения пути гонки.&lt;br /&gt;
** '''&amp;quot;ring&amp;quot;:''' Светящееся кольцо, обычно используется для самолётов.&lt;br /&gt;
** '''&amp;quot;cylinder&amp;quot;:''' Цилиндр, представляет собой подобие чекпоинта, но не такой высокий. В сингле использовался для обозначения точек начала миссий.&lt;br /&gt;
** '''&amp;quot;arrow&amp;quot;:''' Стрелка, представляет собой перевёрнутый к земле конус. В сингле использовался как вход в здания.&lt;br /&gt;
** '''&amp;quot;corona&amp;quot;:''' Корона, представляет собой святящийся шар.&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Corona.png&amp;diff=25054</id>
		<title>File:Corona.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Corona.png&amp;diff=25054"/>
		<updated>2011-01-11T18:40:43Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: Corona&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Corona&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Cylinder.png&amp;diff=25053</id>
		<title>File:Cylinder.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Cylinder.png&amp;diff=25053"/>
		<updated>2011-01-11T18:39:57Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: Cylinder&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Cylinder&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Checkpoint.png&amp;diff=25052</id>
		<title>File:Checkpoint.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Checkpoint.png&amp;diff=25052"/>
		<updated>2011-01-11T18:39:25Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: Checkpoint&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Checkpoint&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Arrow.png&amp;diff=25051</id>
		<title>File:Arrow.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Arrow.png&amp;diff=25051"/>
		<updated>2011-01-11T18:38:29Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: Arrow&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Arrow&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=File:Ring.png&amp;diff=25050</id>
		<title>File:Ring.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=File:Ring.png&amp;diff=25050"/>
		<updated>2011-01-11T18:31:51Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: Ring&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Ring&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25049</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25049"/>
		<updated>2011-01-11T18:14:32Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
** '''&amp;quot;checkpoint&amp;quot;:''' Гоночный чекпоинт, очень высокий, но не бесконечный. В сингле использовался для обозначения пути гонки.&lt;br /&gt;
** '''&amp;quot;ring&amp;quot;:''' Светящееся кольцо, обычно используется для самолётов.&lt;br /&gt;
** '''&amp;quot;cylinder&amp;quot;:''' Цилиндр, представляет собой подобие чекпоинта, но не такой высокий. В сингле использовался для обозначения точек начала миссий.&lt;br /&gt;
** '''&amp;quot;arrow&amp;quot;:''' Стрелка, представляет собой перевёрнутый к земле конус. В сингле использовался как вход в здания.&lt;br /&gt;
** '''&amp;quot;corona&amp;quot;:''' Корона, представляет собой святящийся шар.&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
[[File:Example.jpg]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25048</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25048"/>
		<updated>2011-01-11T18:08:55Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* Вторичные аттрибуты */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
** '''&amp;quot;checkpoint&amp;quot;:''' Гоночный чекпоинт, очень высокий, но не бесконечный. В сингле использовался для обозначения пути гонки.&lt;br /&gt;
** '''&amp;quot;ring&amp;quot;:''' Светящееся кольцо, обычно используется для самолётов.&lt;br /&gt;
** '''&amp;quot;cylinder&amp;quot;:''' Цилиндр, представляет собой подобие чекпоинта, но не такой высокий. В сингле использовался для обозначения точек начала миссий.&lt;br /&gt;
** '''&amp;quot;arrow&amp;quot;:''' Стрелка, представляет собой перевёрнутый к земле конус. В сингле использовался как вход в здания.&lt;br /&gt;
** '''&amp;quot;corona&amp;quot;:''' Корона, представляет собой святящийся шар.&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25047</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25047"/>
		<updated>2011-01-11T18:00:20Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* Вторичные аттрибуты */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
** '''&amp;quot;checkpoint&amp;quot;:''' Гоночный чекпоинт со стрелкой указывающей на следующий чекпоинт. Очень высокий, но не бесконечный.  &lt;br /&gt;
** '''&amp;quot;ring&amp;quot;:''' Светящееся кольцо, обычно используется для самолётов.&lt;br /&gt;
** '''&amp;quot;cylinder&amp;quot;:''' Цилиндр, представляет собой подобие чекпоинта, но без стрелки и не такой высокий. В сингле использовался для обозначения точек начала миссий.&lt;br /&gt;
** '''&amp;quot;arrow&amp;quot;:''' Стрелка, представляет собой перевёрнутый к земле конус. В сингле использовался как вход в здания.&lt;br /&gt;
** '''&amp;quot;corona&amp;quot;:''' Корона, представляет собой святящийся шар.&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25046</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25046"/>
		<updated>2011-01-11T17:59:44Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* Вторичные аттрибуты */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
** '''checkpoint:''' Гоночный чекпоинт со стрелкой указывающей на следующий чекпоинт. Очень высокий, но не бесконечный.  &lt;br /&gt;
** '''ring:''' Светящееся кольцо, обычно используется для самолётов.&lt;br /&gt;
** '''cylinder:''' Цилиндр, представляет собой подобие чекпоинта, но без стрелки и не такой высокий. В сингле использовался для обозначения точек начала миссий.&lt;br /&gt;
** '''arrow:''' Стрелка, представляет собой перевёрнутый к земле конус. В сингле использовался как вход в здания.&lt;br /&gt;
** '''corona:''' Корона, представляет собой святящийся шар.&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25045</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25045"/>
		<updated>2011-01-11T17:59:02Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* Вторичные аттрибуты */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
&lt;br /&gt;
** '''checkpoint:''' Гоночный чекпоинт со стрелкой указывающей на следующий чекпоинт. Очень высокий, но не бесконечный.  &lt;br /&gt;
** '''ring:''' Светящееся кольцо, обычно используется для самолётов.&lt;br /&gt;
** '''cylinder:''' Цилиндр, представляет собой подобие чекпоинта, но без стрелки и не такой высокий. В сингле использовался для обозначения точек начала миссий.&lt;br /&gt;
** '''arrow:''' Стрелка, представляет собой перевёрнутый к земле конус. В сингле использовался как вход в здания.&lt;br /&gt;
** '''corona:''' Корона, представляет собой святящийся шар.&lt;br /&gt;
&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25044</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25044"/>
		<updated>2011-01-11T17:58:22Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* Вторичные аттрибуты */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''checkpoint:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
&lt;br /&gt;
* '''checkpoint:''' Гоночный чекпоинт со стрелкой указывающей на следующий чекпоинт. Очень высокий, но не бесконечный.  &lt;br /&gt;
* '''ring:''' Светящееся кольцо, обычно используется для самолётов.&lt;br /&gt;
* '''cylinder:''' Цилиндр, представляет собой подобие чекпоинта, но без стрелки и не такой высокий. В сингле использовался для обозначения точек начала миссий.&lt;br /&gt;
* '''arrow:''' Стрелка, представляет собой перевёрнутый к земле конус. В сингле использовался как вход в здания.&lt;br /&gt;
* '''corona:''' Корона, представляет собой святящийся шар.&lt;br /&gt;
&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25043</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25043"/>
		<updated>2011-01-11T17:58:00Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''checkpoint:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
&lt;br /&gt;
 * '''checkpoint:''' Гоночный чекпоинт со стрелкой указывающей на следующий чекпоинт. Очень высокий, но не бесконечный.  &lt;br /&gt;
 * '''ring:''' Светящееся кольцо, обычно используется для самолётов.&lt;br /&gt;
 * '''cylinder:''' Цилиндр, представляет собой подобие чекпоинта, но без стрелки и не такой высокий. В сингле использовался для обозначения точек начала миссий.&lt;br /&gt;
 * '''arrow:''' Стрелка, представляет собой перевёрнутый к земле конус. В сингле использовался как вход в здания.&lt;br /&gt;
 * '''corona:''' Корона, представляет собой святящийся шар.&lt;br /&gt;
&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Element/Marker&amp;diff=25042</id>
		<title>Element/Marker</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Element/Marker&amp;diff=25042"/>
		<updated>2011-01-11T17:47:34Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
The marker class represents colored, 3D shapes in the GTA world. There are serveral types of markers, including cylinders and checkpoints. In scripts, markers are often used to mark spots and trigger some sort of action when a player goes into them.&lt;br /&gt;
&lt;br /&gt;
The element type of this class is '''&amp;quot;marker&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
The size of the marker cannot be specified from XML and defaults to 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML syntax==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Required Attributes===&lt;br /&gt;
* '''posX''': A float representing the X position of the pickup.&lt;br /&gt;
* '''posY''': A float representing the Y position of the pickup.&lt;br /&gt;
* '''posZ''': A float representing the Z position of the pickup.&lt;br /&gt;
&lt;br /&gt;
===Optional Attributes===&lt;br /&gt;
* '''type:''' The visual type of the marker to be created. Possible values:&lt;br /&gt;
{{Marker types}}&lt;br /&gt;
* '''color:''' The color of the marker in HTML style format #RRGGBB, defaults to red if not specified.&lt;br /&gt;
&lt;br /&gt;
==Related scripting functions==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[it:Elemento/Marker]]&lt;br /&gt;
[[ru:Элемент/Маркер]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25041</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25041"/>
		<updated>2011-01-11T17:45:31Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Обязательные атрибуты===&lt;br /&gt;
* '''posX''': Координата позиции маркера в игре по оси X.&lt;br /&gt;
* '''posY''': Координата позиции маркера в игре по оси Y.&lt;br /&gt;
* '''posZ''': Координата позиции маркера в игре по оси Z.&lt;br /&gt;
&lt;br /&gt;
===Вторичные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
{{Marker types}}&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25040</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25040"/>
		<updated>2011-01-11T17:44:07Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет из себя цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и гоночные чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента данного класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера НЕ может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Требуемые атрибуты===&lt;br /&gt;
* '''posX''': A float representing the X position of the pickup.&lt;br /&gt;
* '''posY''': A float representing the Y position of the pickup.&lt;br /&gt;
* '''posZ''': A float representing the Z position of the pickup.&lt;br /&gt;
&lt;br /&gt;
===Опциональные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
{{Marker types}}&lt;br /&gt;
* '''color:''' Цвет маркера в HTML формате. Пример: #RRGGBB, по умолчанию цвет маркера красный.&lt;br /&gt;
&lt;br /&gt;
==Функции работы с маркером==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25039</id>
		<title>Category:Маркер</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Category:%D0%9C%D0%B0%D1%80%D0%BA%D0%B5%D1%80&amp;diff=25039"/>
		<updated>2011-01-11T17:40:25Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__NOTOC__&lt;br /&gt;
Класс маркер представляет цветные, трехмерные формы в мире GTA. Есть несколько типов маркеров, включая цилиндры и чекпойнты. В скриптах маркеры часто используются, чтобы обозначить какое-либо место и включать выполнение какого-то действия, когда игрок заходит на маркер.&lt;br /&gt;
&lt;br /&gt;
Тип элемента этого класса - '''&amp;quot;маркер&amp;quot;'''.&lt;br /&gt;
&lt;br /&gt;
Размер маркера не может быть изменен из XML файла и по умолчанию равен 4.0.&lt;br /&gt;
&lt;br /&gt;
==XML синтаксис==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;xml&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;marker posX=&amp;quot;&amp;quot; posY=&amp;quot;&amp;quot; posZ=&amp;quot;&amp;quot; type=&amp;quot;&amp;quot; .../&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Требуемые атрибуты===&lt;br /&gt;
* '''posX''': A float representing the X position of the pickup.&lt;br /&gt;
* '''posY''': A float representing the Y position of the pickup.&lt;br /&gt;
* '''posZ''': A float representing the Z position of the pickup.&lt;br /&gt;
&lt;br /&gt;
===Опциональные аттрибуты===&lt;br /&gt;
* '''type:''' Визуальный тип маркера. Список всех видов:&lt;br /&gt;
{{Marker types}}&lt;br /&gt;
* '''color:''' The color of the marker in HTML style format #RRGGBB, defaults to red if not specified.&lt;br /&gt;
&lt;br /&gt;
==Связанные функции скриптинга==&lt;br /&gt;
{{Marker functions}}&lt;br /&gt;
[[Category:Element Types]]&lt;br /&gt;
&lt;br /&gt;
[[en:Element/Marker]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24994</id>
		<title>RU/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24994"/>
		<updated>2011-01-06T13:27:07Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* Server Events */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Этот ресурс разработан для создания виртуального игрока (бота), который может выполнять некоторые задачи реального игрока (стрелять по врагу, следовать за союзником, искать врага, ходить по путям(вайпоинтам) )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Особенности=&lt;br /&gt;
'''Командная игра:'''&lt;br /&gt;
Бот способен отличать врага от союзника.&lt;br /&gt;
&lt;br /&gt;
'''Навигация по карте:'''&lt;br /&gt;
Если бот будет заспаунен на карте без специальных путей, он сможет двигаться самостоятельно и искать врагов, но не так ловко.&lt;br /&gt;
&lt;br /&gt;
'''Агрессивность:'''&lt;br /&gt;
Эти  боты атакуют игроков и ботов состоящих в других командах.&lt;br /&gt;
&lt;br /&gt;
'''Кооператив:'''&lt;br /&gt;
При обнаружении союзника, боты могут автоматически объединяться в команду с ним. &lt;br /&gt;
&lt;br /&gt;
'''Подвижность и ловкость:'''&lt;br /&gt;
Если на пути бота появятся препятствия он попытается обойти их или перепрыгнуть.&lt;br /&gt;
&lt;br /&gt;
'''Типы игры ботов:'''&lt;br /&gt;
*&amp;quot;hunting&amp;quot; - '''(&amp;quot;рус. Охота&amp;quot;)''' бот следует по указанному пути и выискивает врага.&lt;br /&gt;
*&amp;quot;waiting&amp;quot; - '''(&amp;quot;рус. Выжидание&amp;quot;)''' бот стоит на месте пока в поле его зрения не появится враг.&lt;br /&gt;
*&amp;quot;guarding&amp;quot; - '''(&amp;quot;рус. Охрана&amp;quot;)''' бот не двигается с места и атакует врага если тот находится в поле его зрения.&lt;br /&gt;
*&amp;quot;following&amp;quot; - '''(&amp;quot;рус. Следование&amp;quot;)''' бот следует за союзником (игроком/ботом) и атакует врагов в поле зрения. &lt;br /&gt;
*&amp;quot;chasing&amp;quot; - '''(&amp;quot;рус. Преследование&amp;quot;)''' бот преследует врага и атакует его.&lt;br /&gt;
&lt;br /&gt;
'''Gamemode/Script integration:'''&lt;br /&gt;
This script provides several functions and events to allow other resources to see and control what the bot's are doing, and even take control of certain behaviour.&lt;br /&gt;
&lt;br /&gt;
'''EDF for map path creation:'''&lt;br /&gt;
Integrated into the map editor, map designers can easily place paths for bots to follow along in their maps. this greatly increased the bots ability to simulate true playing.&lt;br /&gt;
&lt;br /&gt;
=Server Events=&lt;br /&gt;
&lt;br /&gt;
==onBotFindEnemy==&lt;br /&gt;
Это условие вызывается когда бот находит врага. Оно может быть отменено, чтобы бот никого не атаковал &lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Параметры'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element enemy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enemy''': Игрок или бот являющийся врагом&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that has found an enemy&lt;br /&gt;
&lt;br /&gt;
==onBotWasted==&lt;br /&gt;
Это условие вызывается когда бот умирает.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, float weapon, float bodypart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''attacker''': Игрок/Бот/Элемент убивший sloth-бота.&lt;br /&gt;
*'''weapon''': Орудие убийства.&lt;br /&gt;
*'''bodypart''': Часть тела в которую sloth-бот был убит.&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that died&lt;br /&gt;
&lt;br /&gt;
==onBotSpawned==&lt;br /&gt;
Это условие вызывается когда бот возраждается.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that spawned&lt;br /&gt;
&lt;br /&gt;
==onBotFollow==&lt;br /&gt;
Это условие вызывается когда бот следует за союзником.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element leader&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''leader''': Союзник за которым следует sloth-бот&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that starts following a teammate&lt;br /&gt;
&lt;br /&gt;
=Server Functions=&lt;br /&gt;
All of these funtions will have to be used through the [[call]] function, otherwise they won't work&lt;br /&gt;
&lt;br /&gt;
==spawnBot==&lt;br /&gt;
This function spawns a bot ingame, will return the bot element, or false if there was a problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = &amp;quot;hunting&amp;quot;, element theModesubject = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the bot at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the bot at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the bot at&lt;br /&gt;
*'''rotation:''' Rotation of the bot on spawn&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''skinID:''' Bots skin on spawn&lt;br /&gt;
*'''interior:''' Interior the bot will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the bot should be in&lt;br /&gt;
*'''theTeam:''' The team the bot will join&lt;br /&gt;
*'''weapon:''' The weapon the ped will carry&lt;br /&gt;
*'''theMode:''' The action the bot will be performing when spawned (see &amp;quot;modes of playing&amp;quot; above)&lt;br /&gt;
*'''theModeSubject:''' If theMode is &amp;quot;chasing&amp;quot; or &amp;quot;following&amp;quot; this arg is needed to tell the bot what opponent to chase or teammate to follow&lt;br /&gt;
&lt;br /&gt;
==setBotHunt==&lt;br /&gt;
makes the bot travel pathways untill finding an enemy or teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotHunt ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to hunt&lt;br /&gt;
&lt;br /&gt;
==setBotWait==&lt;br /&gt;
makes the bot stand still untill an enemy of teammate comes into view&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWait ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to wait&lt;br /&gt;
&lt;br /&gt;
==setBotChase==&lt;br /&gt;
makes the bot attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotChase ( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the chasing&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be chased&lt;br /&gt;
&lt;br /&gt;
==setBotFollow==&lt;br /&gt;
makes the bot follow a teammate bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotFollow( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the following&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be followed&lt;br /&gt;
&lt;br /&gt;
==setBotGuard==&lt;br /&gt;
makes the bot move to the specific coords and stay there while attacking any enemies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotGuard( element theBot, float x, float y, float z, [ bool priority = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to do the guarding&lt;br /&gt;
*'''x:''' The X coords you want the bot to guard&lt;br /&gt;
*'''y:''' The Y coords you want the bot to guard&lt;br /&gt;
*'''z:''' The Z coords you want the bot to guard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''priority:''' Set to true only if you want the bot to only shoot once it has reached the location to guard&lt;br /&gt;
&lt;br /&gt;
==getBotTeam==&lt;br /&gt;
returns the Team the bot is on, false if no team&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotTeam ( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the team of&lt;br /&gt;
&lt;br /&gt;
==setBotTeam==&lt;br /&gt;
changes the bot's team and loyalties&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotTeam ( element theBot, team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to change the team of&lt;br /&gt;
*'''theTeam:''' The team the bot should join&lt;br /&gt;
&lt;br /&gt;
==getBotAttackEnabled==&lt;br /&gt;
returns true if the bot is allowed to attack, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getBotAttackEnabled( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check if it can atack&lt;br /&gt;
&lt;br /&gt;
==setBotAttackEnabled==&lt;br /&gt;
allow or disallow the bot to attack (press fire)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotAttackEnabled( element theBot, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set if it can atack&lt;br /&gt;
*'''enabled:''' set to false to remove the bots ability to attack, true to allow it&lt;br /&gt;
&lt;br /&gt;
==getBotMode==&lt;br /&gt;
returns the mode the bot is in (&amp;quot;chasing&amp;quot;, &amp;quot;waiting&amp;quot;, &amp;quot;guarding&amp;quot;, &amp;quot;hunting&amp;quot;, &amp;quot;following&amp;quot;) or if the bot is chasing or following, it will return the mode and the target&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotMode( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the status of&lt;br /&gt;
&lt;br /&gt;
==isPedBot==&lt;br /&gt;
returns true if the ped is a bot, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ispedbot( element thePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''thePed:''' The ped you want to check if its a bot&lt;br /&gt;
&lt;br /&gt;
==setBotWeapon==&lt;br /&gt;
sets the bot's weapon id (ammo is always infinite)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWeapon( element theBot, float weapon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set the weapon of&lt;br /&gt;
*'''weapon:''' the weapon id you want to give the bot&lt;br /&gt;
&lt;br /&gt;
=Credits=&lt;br /&gt;
*'''Slothman:''' Bot creator, main scripter&lt;br /&gt;
*'''Gamesnert:''' EDF creator, scripting, testing&lt;br /&gt;
*'''Dragon:''' Gamemode creator, testing, scripting help&lt;br /&gt;
*'''EvGeniz:''' early testing, mapping&lt;br /&gt;
'''Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc'''&lt;br /&gt;
[[Category:Resource]]&lt;br /&gt;
&lt;br /&gt;
[[en:Slothman/Slothbot]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24993</id>
		<title>RU/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24993"/>
		<updated>2011-01-06T13:23:17Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* onBotFindEnemy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Этот ресурс разработан для создания виртуального игрока (бота), который может выполнять некоторые задачи реального игрока (стрелять по врагу, следовать за союзником, искать врага, ходить по путям(вайпоинтам) )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Особенности=&lt;br /&gt;
'''Командная игра:'''&lt;br /&gt;
Бот способен отличать врага от союзника.&lt;br /&gt;
&lt;br /&gt;
'''Навигация по карте:'''&lt;br /&gt;
Если бот будет заспаунен на карте без специальных путей, он сможет двигаться самостоятельно и искать врагов, но не так ловко.&lt;br /&gt;
&lt;br /&gt;
'''Агрессивность:'''&lt;br /&gt;
Эти  боты атакуют игроков и ботов состоящих в других командах.&lt;br /&gt;
&lt;br /&gt;
'''Кооператив:'''&lt;br /&gt;
При обнаружении союзника, боты могут автоматически объединяться в команду с ним. &lt;br /&gt;
&lt;br /&gt;
'''Подвижность и ловкость:'''&lt;br /&gt;
Если на пути бота появятся препятствия он попытается обойти их или перепрыгнуть.&lt;br /&gt;
&lt;br /&gt;
'''Типы игры ботов:'''&lt;br /&gt;
*&amp;quot;hunting&amp;quot; - '''(&amp;quot;рус. Охота&amp;quot;)''' бот следует по указанному пути и выискивает врага.&lt;br /&gt;
*&amp;quot;waiting&amp;quot; - '''(&amp;quot;рус. Выжидание&amp;quot;)''' бот стоит на месте пока в поле его зрения не появится враг.&lt;br /&gt;
*&amp;quot;guarding&amp;quot; - '''(&amp;quot;рус. Охрана&amp;quot;)''' бот не двигается с места и атакует врага если тот находится в поле его зрения.&lt;br /&gt;
*&amp;quot;following&amp;quot; - '''(&amp;quot;рус. Следование&amp;quot;)''' бот следует за союзником (игроком/ботом) и атакует врагов в поле зрения. &lt;br /&gt;
*&amp;quot;chasing&amp;quot; - '''(&amp;quot;рус. Преследование&amp;quot;)''' бот преследует врага и атакует его.&lt;br /&gt;
&lt;br /&gt;
'''Gamemode/Script integration:'''&lt;br /&gt;
This script provides several functions and events to allow other resources to see and control what the bot's are doing, and even take control of certain behaviour.&lt;br /&gt;
&lt;br /&gt;
'''EDF for map path creation:'''&lt;br /&gt;
Integrated into the map editor, map designers can easily place paths for bots to follow along in their maps. this greatly increased the bots ability to simulate true playing.&lt;br /&gt;
&lt;br /&gt;
=Server Events=&lt;br /&gt;
&lt;br /&gt;
==onBotFindEnemy==&lt;br /&gt;
Это условие вызывается когда бот находит врага. Оно может быть отменено, чтобы бот никого не атаковал &lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Параметры'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element enemy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enemy''': Игрок или бот являющийся врагом&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that has found an enemy&lt;br /&gt;
&lt;br /&gt;
==onBotWasted==&lt;br /&gt;
This triggers when a bot is killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, float weapon, float bodypart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''attacker''': The Element that killed the bot&lt;br /&gt;
*'''weapon''': The weapon id used to kill the bot&lt;br /&gt;
*'''bodypart''': The bodypart id that was hit to kill the bot&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that died&lt;br /&gt;
&lt;br /&gt;
==onBotSpawned==&lt;br /&gt;
This triggers when a bot is spawned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that spawned&lt;br /&gt;
&lt;br /&gt;
==onBotFollow==&lt;br /&gt;
This triggers when a bot starts following a teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element leader&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''leader''': The Player or Ped the bot has started following&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that starts following a teammate&lt;br /&gt;
&lt;br /&gt;
=Server Functions=&lt;br /&gt;
All of these funtions will have to be used through the [[call]] function, otherwise they won't work&lt;br /&gt;
&lt;br /&gt;
==spawnBot==&lt;br /&gt;
This function spawns a bot ingame, will return the bot element, or false if there was a problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = &amp;quot;hunting&amp;quot;, element theModesubject = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the bot at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the bot at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the bot at&lt;br /&gt;
*'''rotation:''' Rotation of the bot on spawn&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''skinID:''' Bots skin on spawn&lt;br /&gt;
*'''interior:''' Interior the bot will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the bot should be in&lt;br /&gt;
*'''theTeam:''' The team the bot will join&lt;br /&gt;
*'''weapon:''' The weapon the ped will carry&lt;br /&gt;
*'''theMode:''' The action the bot will be performing when spawned (see &amp;quot;modes of playing&amp;quot; above)&lt;br /&gt;
*'''theModeSubject:''' If theMode is &amp;quot;chasing&amp;quot; or &amp;quot;following&amp;quot; this arg is needed to tell the bot what opponent to chase or teammate to follow&lt;br /&gt;
&lt;br /&gt;
==setBotHunt==&lt;br /&gt;
makes the bot travel pathways untill finding an enemy or teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotHunt ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to hunt&lt;br /&gt;
&lt;br /&gt;
==setBotWait==&lt;br /&gt;
makes the bot stand still untill an enemy of teammate comes into view&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWait ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to wait&lt;br /&gt;
&lt;br /&gt;
==setBotChase==&lt;br /&gt;
makes the bot attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotChase ( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the chasing&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be chased&lt;br /&gt;
&lt;br /&gt;
==setBotFollow==&lt;br /&gt;
makes the bot follow a teammate bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotFollow( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the following&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be followed&lt;br /&gt;
&lt;br /&gt;
==setBotGuard==&lt;br /&gt;
makes the bot move to the specific coords and stay there while attacking any enemies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotGuard( element theBot, float x, float y, float z, [ bool priority = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to do the guarding&lt;br /&gt;
*'''x:''' The X coords you want the bot to guard&lt;br /&gt;
*'''y:''' The Y coords you want the bot to guard&lt;br /&gt;
*'''z:''' The Z coords you want the bot to guard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''priority:''' Set to true only if you want the bot to only shoot once it has reached the location to guard&lt;br /&gt;
&lt;br /&gt;
==getBotTeam==&lt;br /&gt;
returns the Team the bot is on, false if no team&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotTeam ( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the team of&lt;br /&gt;
&lt;br /&gt;
==setBotTeam==&lt;br /&gt;
changes the bot's team and loyalties&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotTeam ( element theBot, team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to change the team of&lt;br /&gt;
*'''theTeam:''' The team the bot should join&lt;br /&gt;
&lt;br /&gt;
==getBotAttackEnabled==&lt;br /&gt;
returns true if the bot is allowed to attack, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getBotAttackEnabled( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check if it can atack&lt;br /&gt;
&lt;br /&gt;
==setBotAttackEnabled==&lt;br /&gt;
allow or disallow the bot to attack (press fire)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotAttackEnabled( element theBot, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set if it can atack&lt;br /&gt;
*'''enabled:''' set to false to remove the bots ability to attack, true to allow it&lt;br /&gt;
&lt;br /&gt;
==getBotMode==&lt;br /&gt;
returns the mode the bot is in (&amp;quot;chasing&amp;quot;, &amp;quot;waiting&amp;quot;, &amp;quot;guarding&amp;quot;, &amp;quot;hunting&amp;quot;, &amp;quot;following&amp;quot;) or if the bot is chasing or following, it will return the mode and the target&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotMode( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the status of&lt;br /&gt;
&lt;br /&gt;
==isPedBot==&lt;br /&gt;
returns true if the ped is a bot, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ispedbot( element thePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''thePed:''' The ped you want to check if its a bot&lt;br /&gt;
&lt;br /&gt;
==setBotWeapon==&lt;br /&gt;
sets the bot's weapon id (ammo is always infinite)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWeapon( element theBot, float weapon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set the weapon of&lt;br /&gt;
*'''weapon:''' the weapon id you want to give the bot&lt;br /&gt;
&lt;br /&gt;
=Credits=&lt;br /&gt;
*'''Slothman:''' Bot creator, main scripter&lt;br /&gt;
*'''Gamesnert:''' EDF creator, scripting, testing&lt;br /&gt;
*'''Dragon:''' Gamemode creator, testing, scripting help&lt;br /&gt;
*'''EvGeniz:''' early testing, mapping&lt;br /&gt;
'''Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc'''&lt;br /&gt;
[[Category:Resource]]&lt;br /&gt;
&lt;br /&gt;
[[en:Slothman/Slothbot]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24992</id>
		<title>RU/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24992"/>
		<updated>2011-01-06T13:23:02Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* onBotFindEnemy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Этот ресурс разработан для создания виртуального игрока (бота), который может выполнять некоторые задачи реального игрока (стрелять по врагу, следовать за союзником, искать врага, ходить по путям(вайпоинтам) )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Особенности=&lt;br /&gt;
'''Командная игра:'''&lt;br /&gt;
Бот способен отличать врага от союзника.&lt;br /&gt;
&lt;br /&gt;
'''Навигация по карте:'''&lt;br /&gt;
Если бот будет заспаунен на карте без специальных путей, он сможет двигаться самостоятельно и искать врагов, но не так ловко.&lt;br /&gt;
&lt;br /&gt;
'''Агрессивность:'''&lt;br /&gt;
Эти  боты атакуют игроков и ботов состоящих в других командах.&lt;br /&gt;
&lt;br /&gt;
'''Кооператив:'''&lt;br /&gt;
При обнаружении союзника, боты могут автоматически объединяться в команду с ним. &lt;br /&gt;
&lt;br /&gt;
'''Подвижность и ловкость:'''&lt;br /&gt;
Если на пути бота появятся препятствия он попытается обойти их или перепрыгнуть.&lt;br /&gt;
&lt;br /&gt;
'''Типы игры ботов:'''&lt;br /&gt;
*&amp;quot;hunting&amp;quot; - '''(&amp;quot;рус. Охота&amp;quot;)''' бот следует по указанному пути и выискивает врага.&lt;br /&gt;
*&amp;quot;waiting&amp;quot; - '''(&amp;quot;рус. Выжидание&amp;quot;)''' бот стоит на месте пока в поле его зрения не появится враг.&lt;br /&gt;
*&amp;quot;guarding&amp;quot; - '''(&amp;quot;рус. Охрана&amp;quot;)''' бот не двигается с места и атакует врага если тот находится в поле его зрения.&lt;br /&gt;
*&amp;quot;following&amp;quot; - '''(&amp;quot;рус. Следование&amp;quot;)''' бот следует за союзником (игроком/ботом) и атакует врагов в поле зрения. &lt;br /&gt;
*&amp;quot;chasing&amp;quot; - '''(&amp;quot;рус. Преследование&amp;quot;)''' бот преследует врага и атакует его.&lt;br /&gt;
&lt;br /&gt;
'''Gamemode/Script integration:'''&lt;br /&gt;
This script provides several functions and events to allow other resources to see and control what the bot's are doing, and even take control of certain behaviour.&lt;br /&gt;
&lt;br /&gt;
'''EDF for map path creation:'''&lt;br /&gt;
Integrated into the map editor, map designers can easily place paths for bots to follow along in their maps. this greatly increased the bots ability to simulate true playing.&lt;br /&gt;
&lt;br /&gt;
=Server Events=&lt;br /&gt;
&lt;br /&gt;
==onBotFindEnemy==&lt;br /&gt;
This triggers when a bot locates an enemy, This event can be cancelled to prevent the bot from chasing players&lt;br /&gt;
Это условие вызывается когда бот находит врага. Оно может быть отменено, чтобы бот никого не атаковал &lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Параметры'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element enemy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enemy''': Игрок или бот являющийся врагом&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that has found an enemy&lt;br /&gt;
&lt;br /&gt;
==onBotWasted==&lt;br /&gt;
This triggers when a bot is killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, float weapon, float bodypart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''attacker''': The Element that killed the bot&lt;br /&gt;
*'''weapon''': The weapon id used to kill the bot&lt;br /&gt;
*'''bodypart''': The bodypart id that was hit to kill the bot&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that died&lt;br /&gt;
&lt;br /&gt;
==onBotSpawned==&lt;br /&gt;
This triggers when a bot is spawned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that spawned&lt;br /&gt;
&lt;br /&gt;
==onBotFollow==&lt;br /&gt;
This triggers when a bot starts following a teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element leader&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''leader''': The Player or Ped the bot has started following&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that starts following a teammate&lt;br /&gt;
&lt;br /&gt;
=Server Functions=&lt;br /&gt;
All of these funtions will have to be used through the [[call]] function, otherwise they won't work&lt;br /&gt;
&lt;br /&gt;
==spawnBot==&lt;br /&gt;
This function spawns a bot ingame, will return the bot element, or false if there was a problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = &amp;quot;hunting&amp;quot;, element theModesubject = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the bot at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the bot at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the bot at&lt;br /&gt;
*'''rotation:''' Rotation of the bot on spawn&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''skinID:''' Bots skin on spawn&lt;br /&gt;
*'''interior:''' Interior the bot will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the bot should be in&lt;br /&gt;
*'''theTeam:''' The team the bot will join&lt;br /&gt;
*'''weapon:''' The weapon the ped will carry&lt;br /&gt;
*'''theMode:''' The action the bot will be performing when spawned (see &amp;quot;modes of playing&amp;quot; above)&lt;br /&gt;
*'''theModeSubject:''' If theMode is &amp;quot;chasing&amp;quot; or &amp;quot;following&amp;quot; this arg is needed to tell the bot what opponent to chase or teammate to follow&lt;br /&gt;
&lt;br /&gt;
==setBotHunt==&lt;br /&gt;
makes the bot travel pathways untill finding an enemy or teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotHunt ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to hunt&lt;br /&gt;
&lt;br /&gt;
==setBotWait==&lt;br /&gt;
makes the bot stand still untill an enemy of teammate comes into view&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWait ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to wait&lt;br /&gt;
&lt;br /&gt;
==setBotChase==&lt;br /&gt;
makes the bot attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotChase ( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the chasing&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be chased&lt;br /&gt;
&lt;br /&gt;
==setBotFollow==&lt;br /&gt;
makes the bot follow a teammate bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotFollow( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the following&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be followed&lt;br /&gt;
&lt;br /&gt;
==setBotGuard==&lt;br /&gt;
makes the bot move to the specific coords and stay there while attacking any enemies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotGuard( element theBot, float x, float y, float z, [ bool priority = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to do the guarding&lt;br /&gt;
*'''x:''' The X coords you want the bot to guard&lt;br /&gt;
*'''y:''' The Y coords you want the bot to guard&lt;br /&gt;
*'''z:''' The Z coords you want the bot to guard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''priority:''' Set to true only if you want the bot to only shoot once it has reached the location to guard&lt;br /&gt;
&lt;br /&gt;
==getBotTeam==&lt;br /&gt;
returns the Team the bot is on, false if no team&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotTeam ( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the team of&lt;br /&gt;
&lt;br /&gt;
==setBotTeam==&lt;br /&gt;
changes the bot's team and loyalties&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotTeam ( element theBot, team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to change the team of&lt;br /&gt;
*'''theTeam:''' The team the bot should join&lt;br /&gt;
&lt;br /&gt;
==getBotAttackEnabled==&lt;br /&gt;
returns true if the bot is allowed to attack, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getBotAttackEnabled( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check if it can atack&lt;br /&gt;
&lt;br /&gt;
==setBotAttackEnabled==&lt;br /&gt;
allow or disallow the bot to attack (press fire)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotAttackEnabled( element theBot, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set if it can atack&lt;br /&gt;
*'''enabled:''' set to false to remove the bots ability to attack, true to allow it&lt;br /&gt;
&lt;br /&gt;
==getBotMode==&lt;br /&gt;
returns the mode the bot is in (&amp;quot;chasing&amp;quot;, &amp;quot;waiting&amp;quot;, &amp;quot;guarding&amp;quot;, &amp;quot;hunting&amp;quot;, &amp;quot;following&amp;quot;) or if the bot is chasing or following, it will return the mode and the target&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotMode( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the status of&lt;br /&gt;
&lt;br /&gt;
==isPedBot==&lt;br /&gt;
returns true if the ped is a bot, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ispedbot( element thePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''thePed:''' The ped you want to check if its a bot&lt;br /&gt;
&lt;br /&gt;
==setBotWeapon==&lt;br /&gt;
sets the bot's weapon id (ammo is always infinite)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWeapon( element theBot, float weapon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set the weapon of&lt;br /&gt;
*'''weapon:''' the weapon id you want to give the bot&lt;br /&gt;
&lt;br /&gt;
=Credits=&lt;br /&gt;
*'''Slothman:''' Bot creator, main scripter&lt;br /&gt;
*'''Gamesnert:''' EDF creator, scripting, testing&lt;br /&gt;
*'''Dragon:''' Gamemode creator, testing, scripting help&lt;br /&gt;
*'''EvGeniz:''' early testing, mapping&lt;br /&gt;
'''Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc'''&lt;br /&gt;
[[Category:Resource]]&lt;br /&gt;
&lt;br /&gt;
[[en:Slothman/Slothbot]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24991</id>
		<title>RU/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24991"/>
		<updated>2011-01-06T12:42:05Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: /* Особенности */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Этот ресурс разработан для создания виртуального игрока (бота), который может выполнять некоторые задачи реального игрока (стрелять по врагу, следовать за союзником, искать врага, ходить по путям(вайпоинтам) )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Особенности=&lt;br /&gt;
'''Командная игра:'''&lt;br /&gt;
Бот способен отличать врага от союзника.&lt;br /&gt;
&lt;br /&gt;
'''Навигация по карте:'''&lt;br /&gt;
Если бот будет заспаунен на карте без специальных путей, он сможет двигаться самостоятельно и искать врагов, но не так ловко.&lt;br /&gt;
&lt;br /&gt;
'''Агрессивность:'''&lt;br /&gt;
Эти  боты атакуют игроков и ботов состоящих в других командах.&lt;br /&gt;
&lt;br /&gt;
'''Кооператив:'''&lt;br /&gt;
При обнаружении союзника, боты могут автоматически объединяться в команду с ним. &lt;br /&gt;
&lt;br /&gt;
'''Подвижность и ловкость:'''&lt;br /&gt;
Если на пути бота появятся препятствия он попытается обойти их или перепрыгнуть.&lt;br /&gt;
&lt;br /&gt;
'''Типы игры ботов:'''&lt;br /&gt;
*&amp;quot;hunting&amp;quot; - '''(&amp;quot;рус. Охота&amp;quot;)''' бот следует по указанному пути и выискивает врага.&lt;br /&gt;
*&amp;quot;waiting&amp;quot; - '''(&amp;quot;рус. Выжидание&amp;quot;)''' бот стоит на месте пока в поле его зрения не появится враг.&lt;br /&gt;
*&amp;quot;guarding&amp;quot; - '''(&amp;quot;рус. Охрана&amp;quot;)''' бот не двигается с места и атакует врага если тот находится в поле его зрения.&lt;br /&gt;
*&amp;quot;following&amp;quot; - '''(&amp;quot;рус. Следование&amp;quot;)''' бот следует за союзником (игроком/ботом) и атакует врагов в поле зрения. &lt;br /&gt;
*&amp;quot;chasing&amp;quot; - '''(&amp;quot;рус. Преследование&amp;quot;)''' бот преследует врага и атакует его.&lt;br /&gt;
&lt;br /&gt;
'''Gamemode/Script integration:'''&lt;br /&gt;
This script provides several functions and events to allow other resources to see and control what the bot's are doing, and even take control of certain behaviour.&lt;br /&gt;
&lt;br /&gt;
'''EDF for map path creation:'''&lt;br /&gt;
Integrated into the map editor, map designers can easily place paths for bots to follow along in their maps. this greatly increased the bots ability to simulate true playing.&lt;br /&gt;
&lt;br /&gt;
=Server Events=&lt;br /&gt;
&lt;br /&gt;
==onBotFindEnemy==&lt;br /&gt;
This triggers when a bot locates an enemy, This event can be cancelled to prevent the bot from chasing players&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element enemy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enemy''': The Player or Ped the bot has spotted&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that has found an enemy&lt;br /&gt;
&lt;br /&gt;
==onBotWasted==&lt;br /&gt;
This triggers when a bot is killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, float weapon, float bodypart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''attacker''': The Element that killed the bot&lt;br /&gt;
*'''weapon''': The weapon id used to kill the bot&lt;br /&gt;
*'''bodypart''': The bodypart id that was hit to kill the bot&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that died&lt;br /&gt;
&lt;br /&gt;
==onBotSpawned==&lt;br /&gt;
This triggers when a bot is spawned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that spawned&lt;br /&gt;
&lt;br /&gt;
==onBotFollow==&lt;br /&gt;
This triggers when a bot starts following a teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element leader&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''leader''': The Player or Ped the bot has started following&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that starts following a teammate&lt;br /&gt;
&lt;br /&gt;
=Server Functions=&lt;br /&gt;
All of these funtions will have to be used through the [[call]] function, otherwise they won't work&lt;br /&gt;
&lt;br /&gt;
==spawnBot==&lt;br /&gt;
This function spawns a bot ingame, will return the bot element, or false if there was a problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = &amp;quot;hunting&amp;quot;, element theModesubject = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the bot at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the bot at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the bot at&lt;br /&gt;
*'''rotation:''' Rotation of the bot on spawn&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''skinID:''' Bots skin on spawn&lt;br /&gt;
*'''interior:''' Interior the bot will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the bot should be in&lt;br /&gt;
*'''theTeam:''' The team the bot will join&lt;br /&gt;
*'''weapon:''' The weapon the ped will carry&lt;br /&gt;
*'''theMode:''' The action the bot will be performing when spawned (see &amp;quot;modes of playing&amp;quot; above)&lt;br /&gt;
*'''theModeSubject:''' If theMode is &amp;quot;chasing&amp;quot; or &amp;quot;following&amp;quot; this arg is needed to tell the bot what opponent to chase or teammate to follow&lt;br /&gt;
&lt;br /&gt;
==setBotHunt==&lt;br /&gt;
makes the bot travel pathways untill finding an enemy or teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotHunt ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to hunt&lt;br /&gt;
&lt;br /&gt;
==setBotWait==&lt;br /&gt;
makes the bot stand still untill an enemy of teammate comes into view&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWait ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to wait&lt;br /&gt;
&lt;br /&gt;
==setBotChase==&lt;br /&gt;
makes the bot attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotChase ( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the chasing&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be chased&lt;br /&gt;
&lt;br /&gt;
==setBotFollow==&lt;br /&gt;
makes the bot follow a teammate bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotFollow( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the following&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be followed&lt;br /&gt;
&lt;br /&gt;
==setBotGuard==&lt;br /&gt;
makes the bot move to the specific coords and stay there while attacking any enemies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotGuard( element theBot, float x, float y, float z, [ bool priority = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to do the guarding&lt;br /&gt;
*'''x:''' The X coords you want the bot to guard&lt;br /&gt;
*'''y:''' The Y coords you want the bot to guard&lt;br /&gt;
*'''z:''' The Z coords you want the bot to guard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''priority:''' Set to true only if you want the bot to only shoot once it has reached the location to guard&lt;br /&gt;
&lt;br /&gt;
==getBotTeam==&lt;br /&gt;
returns the Team the bot is on, false if no team&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotTeam ( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the team of&lt;br /&gt;
&lt;br /&gt;
==setBotTeam==&lt;br /&gt;
changes the bot's team and loyalties&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotTeam ( element theBot, team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to change the team of&lt;br /&gt;
*'''theTeam:''' The team the bot should join&lt;br /&gt;
&lt;br /&gt;
==getBotAttackEnabled==&lt;br /&gt;
returns true if the bot is allowed to attack, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getBotAttackEnabled( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check if it can atack&lt;br /&gt;
&lt;br /&gt;
==setBotAttackEnabled==&lt;br /&gt;
allow or disallow the bot to attack (press fire)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotAttackEnabled( element theBot, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set if it can atack&lt;br /&gt;
*'''enabled:''' set to false to remove the bots ability to attack, true to allow it&lt;br /&gt;
&lt;br /&gt;
==getBotMode==&lt;br /&gt;
returns the mode the bot is in (&amp;quot;chasing&amp;quot;, &amp;quot;waiting&amp;quot;, &amp;quot;guarding&amp;quot;, &amp;quot;hunting&amp;quot;, &amp;quot;following&amp;quot;) or if the bot is chasing or following, it will return the mode and the target&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotMode( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the status of&lt;br /&gt;
&lt;br /&gt;
==isPedBot==&lt;br /&gt;
returns true if the ped is a bot, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ispedbot( element thePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''thePed:''' The ped you want to check if its a bot&lt;br /&gt;
&lt;br /&gt;
==setBotWeapon==&lt;br /&gt;
sets the bot's weapon id (ammo is always infinite)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWeapon( element theBot, float weapon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set the weapon of&lt;br /&gt;
*'''weapon:''' the weapon id you want to give the bot&lt;br /&gt;
&lt;br /&gt;
=Credits=&lt;br /&gt;
*'''Slothman:''' Bot creator, main scripter&lt;br /&gt;
*'''Gamesnert:''' EDF creator, scripting, testing&lt;br /&gt;
*'''Dragon:''' Gamemode creator, testing, scripting help&lt;br /&gt;
*'''EvGeniz:''' early testing, mapping&lt;br /&gt;
'''Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc'''&lt;br /&gt;
[[Category:Resource]]&lt;br /&gt;
&lt;br /&gt;
[[en:Slothman/Slothbot]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24990</id>
		<title>RU/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24990"/>
		<updated>2011-01-06T12:41:33Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Этот ресурс разработан для создания виртуального игрока (бота), который может выполнять некоторые задачи реального игрока (стрелять по врагу, следовать за союзником, искать врага, ходить по путям(вайпоинтам) )&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=Особенности=&lt;br /&gt;
'''Командная игра:'''&lt;br /&gt;
Бот способен отличать врага от союзника.&lt;br /&gt;
&lt;br /&gt;
'''Навигация по карте:'''&lt;br /&gt;
Если бот будет заспаунен на карте без специальных путей, он сможет двигаться самостоятельно и искать врагов, но не так ловко.&lt;br /&gt;
&lt;br /&gt;
'''Агрессивность:'''&lt;br /&gt;
Эти  боты атакуют игроков и ботов состоящих в других командах.&lt;br /&gt;
&lt;br /&gt;
'''Командная игра:'''&lt;br /&gt;
При обнаружении союзника, боты могут автоматически объединяться в команду с ним. &lt;br /&gt;
&lt;br /&gt;
'''Подвижность и ловкость:'''&lt;br /&gt;
Если на пути бота появятся препятствия он попытается обойти их или перепрыгнуть.&lt;br /&gt;
&lt;br /&gt;
'''Типы игры ботов:'''&lt;br /&gt;
*&amp;quot;hunting&amp;quot; - '''(&amp;quot;рус. Охота&amp;quot;)''' бот следует по указанному пути и выискивает врага.&lt;br /&gt;
*&amp;quot;waiting&amp;quot; - '''(&amp;quot;рус. Выжидание&amp;quot;)''' бот стоит на месте пока в поле его зрения не появится враг.&lt;br /&gt;
*&amp;quot;guarding&amp;quot; - '''(&amp;quot;рус. Охрана&amp;quot;)''' бот не двигается с места и атакует врага если тот находится в поле его зрения.&lt;br /&gt;
*&amp;quot;following&amp;quot; - '''(&amp;quot;рус. Следование&amp;quot;)''' бот следует за союзником (игроком/ботом) и атакует врагов в поле зрения. &lt;br /&gt;
*&amp;quot;chasing&amp;quot; - '''(&amp;quot;рус. Преследование&amp;quot;)''' бот преследует врага и атакует его.&lt;br /&gt;
&lt;br /&gt;
'''Gamemode/Script integration:'''&lt;br /&gt;
This script provides several functions and events to allow other resources to see and control what the bot's are doing, and even take control of certain behaviour.&lt;br /&gt;
&lt;br /&gt;
'''EDF for map path creation:'''&lt;br /&gt;
Integrated into the map editor, map designers can easily place paths for bots to follow along in their maps. this greatly increased the bots ability to simulate true playing.&lt;br /&gt;
&lt;br /&gt;
=Server Events=&lt;br /&gt;
&lt;br /&gt;
==onBotFindEnemy==&lt;br /&gt;
This triggers when a bot locates an enemy, This event can be cancelled to prevent the bot from chasing players&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element enemy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enemy''': The Player or Ped the bot has spotted&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that has found an enemy&lt;br /&gt;
&lt;br /&gt;
==onBotWasted==&lt;br /&gt;
This triggers when a bot is killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, float weapon, float bodypart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''attacker''': The Element that killed the bot&lt;br /&gt;
*'''weapon''': The weapon id used to kill the bot&lt;br /&gt;
*'''bodypart''': The bodypart id that was hit to kill the bot&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that died&lt;br /&gt;
&lt;br /&gt;
==onBotSpawned==&lt;br /&gt;
This triggers when a bot is spawned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that spawned&lt;br /&gt;
&lt;br /&gt;
==onBotFollow==&lt;br /&gt;
This triggers when a bot starts following a teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element leader&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''leader''': The Player or Ped the bot has started following&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that starts following a teammate&lt;br /&gt;
&lt;br /&gt;
=Server Functions=&lt;br /&gt;
All of these funtions will have to be used through the [[call]] function, otherwise they won't work&lt;br /&gt;
&lt;br /&gt;
==spawnBot==&lt;br /&gt;
This function spawns a bot ingame, will return the bot element, or false if there was a problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = &amp;quot;hunting&amp;quot;, element theModesubject = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the bot at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the bot at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the bot at&lt;br /&gt;
*'''rotation:''' Rotation of the bot on spawn&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''skinID:''' Bots skin on spawn&lt;br /&gt;
*'''interior:''' Interior the bot will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the bot should be in&lt;br /&gt;
*'''theTeam:''' The team the bot will join&lt;br /&gt;
*'''weapon:''' The weapon the ped will carry&lt;br /&gt;
*'''theMode:''' The action the bot will be performing when spawned (see &amp;quot;modes of playing&amp;quot; above)&lt;br /&gt;
*'''theModeSubject:''' If theMode is &amp;quot;chasing&amp;quot; or &amp;quot;following&amp;quot; this arg is needed to tell the bot what opponent to chase or teammate to follow&lt;br /&gt;
&lt;br /&gt;
==setBotHunt==&lt;br /&gt;
makes the bot travel pathways untill finding an enemy or teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotHunt ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to hunt&lt;br /&gt;
&lt;br /&gt;
==setBotWait==&lt;br /&gt;
makes the bot stand still untill an enemy of teammate comes into view&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWait ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to wait&lt;br /&gt;
&lt;br /&gt;
==setBotChase==&lt;br /&gt;
makes the bot attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotChase ( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the chasing&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be chased&lt;br /&gt;
&lt;br /&gt;
==setBotFollow==&lt;br /&gt;
makes the bot follow a teammate bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotFollow( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the following&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be followed&lt;br /&gt;
&lt;br /&gt;
==setBotGuard==&lt;br /&gt;
makes the bot move to the specific coords and stay there while attacking any enemies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotGuard( element theBot, float x, float y, float z, [ bool priority = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to do the guarding&lt;br /&gt;
*'''x:''' The X coords you want the bot to guard&lt;br /&gt;
*'''y:''' The Y coords you want the bot to guard&lt;br /&gt;
*'''z:''' The Z coords you want the bot to guard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''priority:''' Set to true only if you want the bot to only shoot once it has reached the location to guard&lt;br /&gt;
&lt;br /&gt;
==getBotTeam==&lt;br /&gt;
returns the Team the bot is on, false if no team&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotTeam ( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the team of&lt;br /&gt;
&lt;br /&gt;
==setBotTeam==&lt;br /&gt;
changes the bot's team and loyalties&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotTeam ( element theBot, team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to change the team of&lt;br /&gt;
*'''theTeam:''' The team the bot should join&lt;br /&gt;
&lt;br /&gt;
==getBotAttackEnabled==&lt;br /&gt;
returns true if the bot is allowed to attack, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getBotAttackEnabled( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check if it can atack&lt;br /&gt;
&lt;br /&gt;
==setBotAttackEnabled==&lt;br /&gt;
allow or disallow the bot to attack (press fire)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotAttackEnabled( element theBot, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set if it can atack&lt;br /&gt;
*'''enabled:''' set to false to remove the bots ability to attack, true to allow it&lt;br /&gt;
&lt;br /&gt;
==getBotMode==&lt;br /&gt;
returns the mode the bot is in (&amp;quot;chasing&amp;quot;, &amp;quot;waiting&amp;quot;, &amp;quot;guarding&amp;quot;, &amp;quot;hunting&amp;quot;, &amp;quot;following&amp;quot;) or if the bot is chasing or following, it will return the mode and the target&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotMode( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the status of&lt;br /&gt;
&lt;br /&gt;
==isPedBot==&lt;br /&gt;
returns true if the ped is a bot, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ispedbot( element thePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''thePed:''' The ped you want to check if its a bot&lt;br /&gt;
&lt;br /&gt;
==setBotWeapon==&lt;br /&gt;
sets the bot's weapon id (ammo is always infinite)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWeapon( element theBot, float weapon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set the weapon of&lt;br /&gt;
*'''weapon:''' the weapon id you want to give the bot&lt;br /&gt;
&lt;br /&gt;
=Credits=&lt;br /&gt;
*'''Slothman:''' Bot creator, main scripter&lt;br /&gt;
*'''Gamesnert:''' EDF creator, scripting, testing&lt;br /&gt;
*'''Dragon:''' Gamemode creator, testing, scripting help&lt;br /&gt;
*'''EvGeniz:''' early testing, mapping&lt;br /&gt;
'''Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc'''&lt;br /&gt;
[[Category:Resource]]&lt;br /&gt;
&lt;br /&gt;
[[en:Slothman/Slothbot]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24987</id>
		<title>RU/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=24987"/>
		<updated>2011-01-06T12:07:03Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: Created page with &amp;quot;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;  This is a resource designed to allow scripts or gamemodes to insert a ped into the game that roughly simulates com...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a resource designed to allow scripts or gamemodes to insert a ped into the game that roughly simulates combat with a real player. gamemodes can implement the bots as opponents to actual players or as teammates. &lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
'''Teamplay:'''&lt;br /&gt;
The bot is capable of identifying friend from foe&lt;br /&gt;
&lt;br /&gt;
'''Map Navigation:'''&lt;br /&gt;
When the bot is placed in a map that has suitable pathways marked out (see below on how to do that) the bot will navigate the map, seeking out enemies. Without pathways, a bot can still think for itself, but wont move around as profficiently.&lt;br /&gt;
&lt;br /&gt;
'''Aggressiveness:'''&lt;br /&gt;
Bots will attack any ped, player or bot thats not on it's team.&lt;br /&gt;
&lt;br /&gt;
'''Cooperation:'''&lt;br /&gt;
Bots can automatically team up with teammates (either player or bot) by meeting up with them and sticking together&lt;br /&gt;
&lt;br /&gt;
'''Advanced movement:'''&lt;br /&gt;
If theres obstacles blocking a bot's path, the bot will attempt to get around or over it instead of just walking into a wall for eternity&lt;br /&gt;
&lt;br /&gt;
'''Multiple modes of playing:'''&lt;br /&gt;
*&amp;quot;hunting&amp;quot; - travel pathways untill finding an enemy or teammate&lt;br /&gt;
*&amp;quot;waiting&amp;quot; - stand still untill an enemy of teammate comes into view&lt;br /&gt;
*&amp;quot;guarding&amp;quot; - the bot will attack any enemy that comes within sight, but not move from its spawn position&lt;br /&gt;
*&amp;quot;following&amp;quot; - the bot will follow a player or bot while attacking enemies&lt;br /&gt;
*&amp;quot;chasing&amp;quot; - the bot will attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
'''Gamemode/Script integration:'''&lt;br /&gt;
This script provides several functions and events to allow other resources to see and control what the bot's are doing, and even take control of certain behaviour.&lt;br /&gt;
&lt;br /&gt;
'''EDF for map path creation:'''&lt;br /&gt;
Integrated into the map editor, map designers can easily place paths for bots to follow along in their maps. this greatly increased the bots ability to simulate true playing.&lt;br /&gt;
&lt;br /&gt;
=Server Events=&lt;br /&gt;
&lt;br /&gt;
==onBotFindEnemy==&lt;br /&gt;
This triggers when a bot locates an enemy, This event can be cancelled to prevent the bot from chasing players&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element enemy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enemy''': The Player or Ped the bot has spotted&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that has found an enemy&lt;br /&gt;
&lt;br /&gt;
==onBotWasted==&lt;br /&gt;
This triggers when a bot is killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, float weapon, float bodypart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''attacker''': The Element that killed the bot&lt;br /&gt;
*'''weapon''': The weapon id used to kill the bot&lt;br /&gt;
*'''bodypart''': The bodypart id that was hit to kill the bot&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that died&lt;br /&gt;
&lt;br /&gt;
==onBotSpawned==&lt;br /&gt;
This triggers when a bot is spawned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that spawned&lt;br /&gt;
&lt;br /&gt;
==onBotFollow==&lt;br /&gt;
This triggers when a bot starts following a teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element leader&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''leader''': The Player or Ped the bot has started following&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that starts following a teammate&lt;br /&gt;
&lt;br /&gt;
=Server Functions=&lt;br /&gt;
All of these funtions will have to be used through the [[call]] function, otherwise they won't work&lt;br /&gt;
&lt;br /&gt;
==spawnBot==&lt;br /&gt;
This function spawns a bot ingame, will return the bot element, or false if there was a problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = &amp;quot;hunting&amp;quot;, element theModesubject = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the bot at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the bot at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the bot at&lt;br /&gt;
*'''rotation:''' Rotation of the bot on spawn&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''skinID:''' Bots skin on spawn&lt;br /&gt;
*'''interior:''' Interior the bot will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the bot should be in&lt;br /&gt;
*'''theTeam:''' The team the bot will join&lt;br /&gt;
*'''weapon:''' The weapon the ped will carry&lt;br /&gt;
*'''theMode:''' The action the bot will be performing when spawned (see &amp;quot;modes of playing&amp;quot; above)&lt;br /&gt;
*'''theModeSubject:''' If theMode is &amp;quot;chasing&amp;quot; or &amp;quot;following&amp;quot; this arg is needed to tell the bot what opponent to chase or teammate to follow&lt;br /&gt;
&lt;br /&gt;
==setBotHunt==&lt;br /&gt;
makes the bot travel pathways untill finding an enemy or teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotHunt ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to hunt&lt;br /&gt;
&lt;br /&gt;
==setBotWait==&lt;br /&gt;
makes the bot stand still untill an enemy of teammate comes into view&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWait ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to wait&lt;br /&gt;
&lt;br /&gt;
==setBotChase==&lt;br /&gt;
makes the bot attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotChase ( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the chasing&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be chased&lt;br /&gt;
&lt;br /&gt;
==setBotFollow==&lt;br /&gt;
makes the bot follow a teammate bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotFollow( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the following&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be followed&lt;br /&gt;
&lt;br /&gt;
==setBotGuard==&lt;br /&gt;
makes the bot move to the specific coords and stay there while attacking any enemies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotGuard( element theBot, float x, float y, float z, [ bool priority = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to do the guarding&lt;br /&gt;
*'''x:''' The X coords you want the bot to guard&lt;br /&gt;
*'''y:''' The Y coords you want the bot to guard&lt;br /&gt;
*'''z:''' The Z coords you want the bot to guard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''priority:''' Set to true only if you want the bot to only shoot once it has reached the location to guard&lt;br /&gt;
&lt;br /&gt;
==getBotTeam==&lt;br /&gt;
returns the Team the bot is on, false if no team&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotTeam ( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the team of&lt;br /&gt;
&lt;br /&gt;
==setBotTeam==&lt;br /&gt;
changes the bot's team and loyalties&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotTeam ( element theBot, team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to change the team of&lt;br /&gt;
*'''theTeam:''' The team the bot should join&lt;br /&gt;
&lt;br /&gt;
==getBotAttackEnabled==&lt;br /&gt;
returns true if the bot is allowed to attack, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getBotAttackEnabled( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check if it can atack&lt;br /&gt;
&lt;br /&gt;
==setBotAttackEnabled==&lt;br /&gt;
allow or disallow the bot to attack (press fire)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotAttackEnabled( element theBot, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set if it can atack&lt;br /&gt;
*'''enabled:''' set to false to remove the bots ability to attack, true to allow it&lt;br /&gt;
&lt;br /&gt;
==getBotMode==&lt;br /&gt;
returns the mode the bot is in (&amp;quot;chasing&amp;quot;, &amp;quot;waiting&amp;quot;, &amp;quot;guarding&amp;quot;, &amp;quot;hunting&amp;quot;, &amp;quot;following&amp;quot;) or if the bot is chasing or following, it will return the mode and the target&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotMode( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the status of&lt;br /&gt;
&lt;br /&gt;
==isPedBot==&lt;br /&gt;
returns true if the ped is a bot, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ispedbot( element thePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''thePed:''' The ped you want to check if its a bot&lt;br /&gt;
&lt;br /&gt;
==setBotWeapon==&lt;br /&gt;
sets the bot's weapon id (ammo is always infinite)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWeapon( element theBot, float weapon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set the weapon of&lt;br /&gt;
*'''weapon:''' the weapon id you want to give the bot&lt;br /&gt;
&lt;br /&gt;
=Credits=&lt;br /&gt;
*'''Slothman:''' Bot creator, main scripter&lt;br /&gt;
*'''Gamesnert:''' EDF creator, scripting, testing&lt;br /&gt;
*'''Dragon:''' Gamemode creator, testing, scripting help&lt;br /&gt;
*'''EvGeniz:''' early testing, mapping&lt;br /&gt;
'''Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc'''&lt;br /&gt;
[[Category:Resource]]&lt;br /&gt;
&lt;br /&gt;
[[en:Slothman/Slothbot]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=Slothman/Slothbot&amp;diff=24986</id>
		<title>Slothman/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=Slothman/Slothbot&amp;diff=24986"/>
		<updated>2011-01-06T12:03:44Z</updated>

		<summary type="html">&lt;p&gt;Nodward Nichrome: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;pageclass class=&amp;quot;resource&amp;quot; subcaption=&amp;quot;Resource&amp;quot;&amp;gt;&amp;lt;/pageclass&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is a resource designed to allow scripts or gamemodes to insert a ped into the game that roughly simulates combat with a real player. gamemodes can implement the bots as opponents to actual players or as teammates. &lt;br /&gt;
&lt;br /&gt;
=Features=&lt;br /&gt;
'''Teamplay:'''&lt;br /&gt;
The bot is capable of identifying friend from foe&lt;br /&gt;
&lt;br /&gt;
'''Map Navigation:'''&lt;br /&gt;
When the bot is placed in a map that has suitable pathways marked out (see below on how to do that) the bot will navigate the map, seeking out enemies. Without pathways, a bot can still think for itself, but wont move around as profficiently.&lt;br /&gt;
&lt;br /&gt;
'''Aggressiveness:'''&lt;br /&gt;
Bots will attack any ped, player or bot thats not on it's team.&lt;br /&gt;
&lt;br /&gt;
'''Cooperation:'''&lt;br /&gt;
Bots can automatically team up with teammates (either player or bot) by meeting up with them and sticking together&lt;br /&gt;
&lt;br /&gt;
'''Advanced movement:'''&lt;br /&gt;
If theres obstacles blocking a bot's path, the bot will attempt to get around or over it instead of just walking into a wall for eternity&lt;br /&gt;
&lt;br /&gt;
'''Multiple modes of playing:'''&lt;br /&gt;
*&amp;quot;hunting&amp;quot; - travel pathways untill finding an enemy or teammate&lt;br /&gt;
*&amp;quot;waiting&amp;quot; - stand still untill an enemy of teammate comes into view&lt;br /&gt;
*&amp;quot;guarding&amp;quot; - the bot will attack any enemy that comes within sight, but not move from its spawn position&lt;br /&gt;
*&amp;quot;following&amp;quot; - the bot will follow a player or bot while attacking enemies&lt;br /&gt;
*&amp;quot;chasing&amp;quot; - the bot will attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
'''Gamemode/Script integration:'''&lt;br /&gt;
This script provides several functions and events to allow other resources to see and control what the bot's are doing, and even take control of certain behaviour.&lt;br /&gt;
&lt;br /&gt;
'''EDF for map path creation:'''&lt;br /&gt;
Integrated into the map editor, map designers can easily place paths for bots to follow along in their maps. this greatly increased the bots ability to simulate true playing.&lt;br /&gt;
&lt;br /&gt;
=Server Events=&lt;br /&gt;
&lt;br /&gt;
==onBotFindEnemy==&lt;br /&gt;
This triggers when a bot locates an enemy, This event can be cancelled to prevent the bot from chasing players&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element enemy&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''enemy''': The Player or Ped the bot has spotted&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that has found an enemy&lt;br /&gt;
&lt;br /&gt;
==onBotWasted==&lt;br /&gt;
This triggers when a bot is killed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element attacker, float weapon, float bodypart&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''attacker''': The Element that killed the bot&lt;br /&gt;
*'''weapon''': The weapon id used to kill the bot&lt;br /&gt;
*'''bodypart''': The bodypart id that was hit to kill the bot&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that died&lt;br /&gt;
&lt;br /&gt;
==onBotSpawned==&lt;br /&gt;
This triggers when a bot is spawned.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that spawned&lt;br /&gt;
&lt;br /&gt;
==onBotFollow==&lt;br /&gt;
This triggers when a bot starts following a teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Parameters'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element leader&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
*'''leader''': The Player or Ped the bot has started following&lt;br /&gt;
&amp;lt;big&amp;gt;'''Source'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[event system#Event source|source]] of this event is the Bot that starts following a teammate&lt;br /&gt;
&lt;br /&gt;
=Server Functions=&lt;br /&gt;
All of these funtions will have to be used through the [[call]] function, otherwise they won't work&lt;br /&gt;
&lt;br /&gt;
==spawnBot==&lt;br /&gt;
This function spawns a bot ingame, will return the bot element, or false if there was a problem.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
element spawnBot ( float x, float y, float z, int rotation = 0, [ int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil, int weapon = 0, string theMode = &amp;quot;hunting&amp;quot;, element theModesubject = nil ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''x:''' The x co-ordinate to spawn the bot at&lt;br /&gt;
*'''y:''' The y co-ordinate to spawn the bot at&lt;br /&gt;
*'''z:''' The z co-ordinate to spawn the bot at&lt;br /&gt;
*'''rotation:''' Rotation of the bot on spawn&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''skinID:''' Bots skin on spawn&lt;br /&gt;
*'''interior:''' Interior the bot will spawn into&lt;br /&gt;
*'''dimension:''' The ID of the [[dimension]] that the bot should be in&lt;br /&gt;
*'''theTeam:''' The team the bot will join&lt;br /&gt;
*'''weapon:''' The weapon the ped will carry&lt;br /&gt;
*'''theMode:''' The action the bot will be performing when spawned (see &amp;quot;modes of playing&amp;quot; above)&lt;br /&gt;
*'''theModeSubject:''' If theMode is &amp;quot;chasing&amp;quot; or &amp;quot;following&amp;quot; this arg is needed to tell the bot what opponent to chase or teammate to follow&lt;br /&gt;
&lt;br /&gt;
==setBotHunt==&lt;br /&gt;
makes the bot travel pathways untill finding an enemy or teammate&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotHunt ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to hunt&lt;br /&gt;
&lt;br /&gt;
==setBotWait==&lt;br /&gt;
makes the bot stand still untill an enemy of teammate comes into view&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWait ( element theBot )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to wait&lt;br /&gt;
&lt;br /&gt;
==setBotChase==&lt;br /&gt;
makes the bot attack an anemy bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotChase ( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the chasing&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be chased&lt;br /&gt;
&lt;br /&gt;
==setBotFollow==&lt;br /&gt;
makes the bot follow a teammate bot or player&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotFollow( element theBot, element theTarget )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot that you want to do the following&lt;br /&gt;
*'''theTarget:''' The bot or player you want to be followed&lt;br /&gt;
&lt;br /&gt;
==setBotGuard==&lt;br /&gt;
makes the bot move to the specific coords and stay there while attacking any enemies&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotGuard( element theBot, float x, float y, float z, [ bool priority = false ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to do the guarding&lt;br /&gt;
*'''x:''' The X coords you want the bot to guard&lt;br /&gt;
*'''y:''' The Y coords you want the bot to guard&lt;br /&gt;
*'''z:''' The Z coords you want the bot to guard&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Optional Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''priority:''' Set to true only if you want the bot to only shoot once it has reached the location to guard&lt;br /&gt;
&lt;br /&gt;
==getBotTeam==&lt;br /&gt;
returns the Team the bot is on, false if no team&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotTeam ( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the team of&lt;br /&gt;
&lt;br /&gt;
==setBotTeam==&lt;br /&gt;
changes the bot's team and loyalties&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotTeam ( element theBot, team theTeam )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to change the team of&lt;br /&gt;
*'''theTeam:''' The team the bot should join&lt;br /&gt;
&lt;br /&gt;
==getBotAttackEnabled==&lt;br /&gt;
returns true if the bot is allowed to attack, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool getBotAttackEnabled( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check if it can atack&lt;br /&gt;
&lt;br /&gt;
==setBotAttackEnabled==&lt;br /&gt;
allow or disallow the bot to attack (press fire)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotAttackEnabled( element theBot, bool enabled)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set if it can atack&lt;br /&gt;
*'''enabled:''' set to false to remove the bots ability to attack, true to allow it&lt;br /&gt;
&lt;br /&gt;
==getBotMode==&lt;br /&gt;
returns the mode the bot is in (&amp;quot;chasing&amp;quot;, &amp;quot;waiting&amp;quot;, &amp;quot;guarding&amp;quot;, &amp;quot;hunting&amp;quot;, &amp;quot;following&amp;quot;) or if the bot is chasing or following, it will return the mode and the target&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
string getBotMode( element theBot)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to check the status of&lt;br /&gt;
&lt;br /&gt;
==isPedBot==&lt;br /&gt;
returns true if the ped is a bot, false otherwise&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool ispedbot( element thePed)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''thePed:''' The ped you want to check if its a bot&lt;br /&gt;
&lt;br /&gt;
==setBotWeapon==&lt;br /&gt;
sets the bot's weapon id (ammo is always infinite)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Syntax'''&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool setBotWeapon( element theBot, float weapon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;'''Required Arguments'''&amp;lt;/big&amp;gt;&lt;br /&gt;
*'''theBot:''' The bot you want to set the weapon of&lt;br /&gt;
*'''weapon:''' the weapon id you want to give the bot&lt;br /&gt;
&lt;br /&gt;
=Credits=&lt;br /&gt;
*'''Slothman:''' Bot creator, main scripter&lt;br /&gt;
*'''Gamesnert:''' EDF creator, scripting, testing&lt;br /&gt;
*'''Dragon:''' Gamemode creator, testing, scripting help&lt;br /&gt;
*'''EvGeniz:''' early testing, mapping&lt;br /&gt;
'''Thanks to Everyone else who made suggestions, tested the script, helped when i was stuck, etc'''&lt;br /&gt;
[[Category:Resource]]&lt;br /&gt;
&lt;br /&gt;
[[ru:Slothbot]]&lt;/div&gt;</summary>
		<author><name>Nodward Nichrome</name></author>
	</entry>
</feed>