Scripting/Server/Functions/BotAimAt

The bot looks at - and shoots at, while BOT_FIRE is held - that point. Without coordinates it stops aiming at it.

Syntax

BotAimAt(bot, x, y, z)
BotAimAt(bot)

Arguments

Example

function onPlayerCommand( player, cmd, params )
{
	if ( cmd == "botaimat" )
	{
		local pos = player.Pos;
		BotAimAt( 0, pos.x, pos.y, pos.z );
	}
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: Bots - virtual players (v0.5-beta)

Categories: Server functions | Bots - virtual players (v0.5-beta)