Skip to Content

bz_killPlayer()

Available since 2.4.0

The player with the specified ID playerID is killed by the player with ID killerID using the optional flag flagID.

Usage

bool bz_killPlayer(int playerID, bool spawnOnBase, int killerID, const char* flagID)
Parameters
int playerID

The ID of player to be killed.

bool spawnOnBase

If true, the killed player will respawn on their base.

int killerID

The ID of the killer. If -1, ServerPlayer will be used.

const char* flagID

If not NULL, the killed player will be killed with flagID.

Returns

bool - true if the player was killed, otherwise false.

Other Misc Functions

Back to bzfs API Functions

This content is maintained on GitHub. We welcome any feedback and improvements!

Give us Feedback Edit this Page