<?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=Desenz</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=Desenz"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/wiki/Special:Contributions/Desenz"/>
	<updated>2026-05-06T11:50:10Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=45177</id>
		<title>RU/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=45177"/>
		<updated>2015-05-04T21:56:10Z</updated>

		<summary type="html">&lt;p&gt;Desenz: &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;
{{translate|ru}}&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;
'''Игровой режим/Объединение скрипта:'''&lt;br /&gt;
тот сценарий имеет несколько функций и событий что позволит другим ресурсам видеть и контролировать то, что боты делают, и даже взять под контроль их поведение.&lt;br /&gt;
&lt;br /&gt;
'''EDF путь для создания карты:'''&lt;br /&gt;
Интегрированный в карту редактор,на карте разработчики могут легко разместить пути для ботов для их следования через всю карту. Это значительно расширило возможности ботов для имитации истинной игры.&lt;br /&gt;
&lt;br /&gt;
=События Сервера=&lt;br /&gt;
&lt;br /&gt;
==onBotFindEnemy==&lt;br /&gt;
Это условие вызывается когда бот находит врага. Оно может быть отменено, чтобы бот никого не атаковал.&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 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>Desenz</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=45176</id>
		<title>RU/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=45176"/>
		<updated>2015-05-04T21:45:59Z</updated>

		<summary type="html">&lt;p&gt;Desenz: &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;
{{translate|ru}}&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>Desenz</name></author>
	</entry>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=45175</id>
		<title>RU/Slothbot</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=RU/Slothbot&amp;diff=45175"/>
		<updated>2015-05-04T21:42:43Z</updated>

		<summary type="html">&lt;p&gt;Desenz: &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;
{{translate|ru}}&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;
EDF путь для создания карты: Интегрированный в карту редактор,на карте разработчики могут легко разместить пути для ботов для их следования через всю карту. Это значительно расширило возможности ботов для имитации истинной игры.&lt;br /&gt;
&lt;br /&gt;
События Сервера&lt;br /&gt;
&lt;br /&gt;
onBotFindEnemyЭто условие вызывается когда бот находит врага. Оно может быть отменено, чтобы бот никого не атаковал.element enemy&lt;br /&gt;
enemy: Игрок или бот являющийся врагом.&lt;br /&gt;
&lt;br /&gt;
onBotWastedЭто условие вызывается когда бот умирает.element attacker, float weapon, float bodypart&lt;br /&gt;
attacker: Игрок/Бот/Элемент убивший sloth-бота.&lt;br /&gt;
weapon: Орудие убийства.&lt;br /&gt;
bodypart: Часть тела в которую sloth-бот был убит.&lt;br /&gt;
&lt;br /&gt;
onBotSpawnedЭто условие вызывается когда бот возрождается.&lt;br /&gt;
&lt;br /&gt;
onBotFollowЭто условие вызывается когда бот следует за союзником.element leader&lt;br /&gt;
leader:: Союзник за которым следует sloth-бот.&lt;br /&gt;
&lt;br /&gt;
Функции Сервера&lt;br /&gt;
&lt;br /&gt;
Примечание: Все эти функции должны быть использованы посредством вызова функции(call), иначе они не будут работать.&lt;br /&gt;
&lt;br /&gt;
spawnBotЭта функция создает бота в игре.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;
Обязательные аргументы:&lt;br /&gt;
x: Координата спавна бота по X&lt;br /&gt;
y: Координата спавна бота по Y&lt;br /&gt;
z: Координата спавна бота по Z&lt;br /&gt;
rotation: &amp;quot;Поворот&amp;quot; спавна бота&lt;br /&gt;
&lt;br /&gt;
Необязательные аргументы:&lt;br /&gt;
skinID: ID скина бота&lt;br /&gt;
interior: Интерьер в котором бот &amp;quot;заспавнится&amp;quot;&lt;br /&gt;
dimension: Размер, величина&lt;br /&gt;
theTeam: Команда в которую бот &amp;quot;войдет&amp;quot;&lt;br /&gt;
weapon: Оружие которое бот будет &amp;quot;носить&amp;quot;&lt;br /&gt;
theMode: Действие которое бот будет выполнять, когда &amp;quot;заспавнился&amp;quot;&lt;br /&gt;
theModeSubject: Если режим &amp;quot;погоня&amp;quot; или &amp;quot;следование за..&amp;quot; этим аргументом необходимо сказать, что бот преследует противника(в 1ом случае &amp;quot;погоня&amp;quot;) или товарища по команде(во 2ом случае &amp;quot;следование за..&amp;quot;&lt;br /&gt;
&lt;br /&gt;
setBotHuntЗаставляет бота следовать по &amp;quot;путям&amp;quot; пока не найдет противника или товарища по команде.bool setBotHunt ( element theBot )&lt;br /&gt;
theBot: Бот будет &amp;quot;охотиться&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
setBotWaitЗаставляет бота стоять на месте, пока враг товарища по команде не попадает в поле зрения.bool setBotWait ( element theBot )&lt;br /&gt;
theBot: Бот будет ждать.&lt;br /&gt;
&lt;br /&gt;
setBotChaseЗаставляет бота атаковать вражеского бота или игрока.bool setBotChase ( element theBot, element theTarget )&lt;br /&gt;
theBot: Заставляет бота начать преследование врага.&lt;br /&gt;
theTarget: Бот или игрок начинает преследование.setBotFollowЗаставляет бота следовать за дружеским игроком или ботом.bool setBotFollow( element theBot, element theTarget )&lt;br /&gt;
theBot: Бот.&lt;br /&gt;
theTarget: Бот или игрок за которым нужно следовать.&lt;br /&gt;
&lt;br /&gt;
setBotGuardЗаставляет бота перейти к конкретным координатам и оставаться там во время нападения любых врагов.bool setBotGuard( element theBot, float x, float y, float z, [ bool priority = false ] )&lt;br /&gt;
theBot: Бот&lt;br /&gt;
x: Координаты по оси X где бот будет охранять&lt;br /&gt;
y: Координаты по оси Y где бот будет охранять&lt;br /&gt;
z: Координаты по оси Z где бот будет охранять&lt;br /&gt;
priority: Бот будет атаковать врагов оружием&lt;br /&gt;
&lt;br /&gt;
getBotTeamПолучает команду бота.string getBotTeam ( element theBot)&lt;br /&gt;
theBot: Бот&lt;br /&gt;
&lt;br /&gt;
setBotTeamЗадает команду бота.bool setBotTeam ( element theBot, team theTeam )&lt;br /&gt;
theBot: Бот&lt;br /&gt;
theTeam: Команда к которой должен присоединится бот&lt;br /&gt;
&lt;br /&gt;
getBotAttackEnabledВозвращает true если бот начал атаковать, иначе false.bool getBotAttackEnabled( element theBot)&lt;br /&gt;
theBot: Бот&lt;br /&gt;
&lt;br /&gt;
setBotAttackEnabledВключить или отключить атаку бота.bool setBotAttackEnabled( element theBot, bool enabled)&lt;br /&gt;
theBot: Бот&lt;br /&gt;
enabled: false - Отключить. true - Включить.&lt;br /&gt;
&lt;br /&gt;
getBotModeПолучает тип бота (&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;).string getBotMode( element theBot)&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;
theBot: Бот&lt;br /&gt;
&lt;br /&gt;
isPedBotВозвращает true если пед является ботом, иначе false.bool ispedbot( element thePed)&lt;br /&gt;
thePed: Бот которого нужно &amp;quot;проверить&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
setBotWeaponДает оружие боту.bool setBotWeapon( element theBot, float weapon)&lt;br /&gt;
theBot: Бот&lt;br /&gt;
[[Category:RU/Resource]]&lt;br /&gt;
&lt;br /&gt;
[[en:Slothman/Slothbot]]&lt;/div&gt;</summary>
		<author><name>Desenz</name></author>
	</entry>
</feed>