HolyLib Wiki

gameserver.CreateFakeClient

 CGameClient gameserver.CreateFakeClient( string name )

Description

Creates a new fake client (bot) with the given name and adds it to the server.
Returns nil if the server isn't active or the engine failed to create the client (e.g. no free client slot left).

Arguments

1string name

The name to give the fake client

Returns

1CGameClient client

The created fake client or nil on failure