Scripting/Server/Functions/CreateBlip
Radar blip for everyone. spriteID is one of the BLIP_* constants (0 = coloured square), or a custom icon id 30-255: put a 32x32 image named <id>.png (also .jpg .bmp .gif) in LU/blips next to Server.exe and the clients draw it on the radar instead of an engine icon (v0.3.3-r2+; coordinates only, no entity blips).
Syntax
CreateBlip(spriteID, pos)CreateBlip(spriteID, x, y, z)Arguments
- int spriteID –
spriteIDis one of theBLIP_*constants (0 = coloured square), or a custom icon id 30-255: put a 32x32 image named<id>.png(also .jpg .bmp .gif) inLU/blipsnext to Server.exe and the clients draw it on the radar instead of an engine icon (v0.3.3-r2+; coordinates only, no entity blips). - Vector pos
- float x
- float y
- float z
Returns
Blip or null.
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "createblip" )
{
local result = CreateBlip( 0, player.Pos );
MessagePlayer( "CreateBlip returned: " + result, player );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- CreateVehicle
- CreateObject
- CreatePickup
- CreateWeaponPickup
- CreateSphere
- CreateClientSphere
- CreateCheckpoint
- CreateClientCheckpoint
- FindCheckpoint
- GetCheckpointCount
- CreateClientBlip
- GangZoneCreate
Section: Creating world entities
Categories: Server functions | Creating world entities