Scripting/Client/Functions/ToggleBulletHoles

(v0.4.4) Bullet holes: every shot that hits something leaves a mark - dark holes on walls, ground, objects and vehicles (cracks in glass), blood on peds that follows the body part. true switches it on, false off (off by default; switching off removes the marks). Holes on walls and the ground stay until about 400 are on the map, blood on peds fades after a minute; nothing is drawn further than 120 m. The textures come from LU/bullet_holes.txd in the server folder (sent to the clients automatically): texture names concrete, metal, wood, glass, flesh, soft, plastic, each with optional variants concrete_1 ... concrete_9 picked at random; without the file built-in textures are used. PC only: on Android the function exists but does nothing.

Syntax

ToggleBulletHoles(bool)

Arguments

Example

function onScriptLoad()
{
	ToggleBulletHoles( true );
}

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

Section: Input

Categories: Client functions | Input