CreateClientBlip

From Liberty Unleashed Wiki
Revision as of 21:55, 30 November 2010 by Force (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function creates a new local radar blip, which is only visible for the player it's created for. It will return a pointer to the blip or null if creating the blip was unsuccessful.

Syntax

CreateClientBlip can take 2 different lists of parameters. These are:

  1. Blip CreateClientBlip( Player client, int sprite, Vector pos )
  1. Blip CreateClientBlip( Player client, int sprite, float x, float y, float z )

Arguments

  • client - The client who will be the owner of this blip and who will be the only one able to see it
  • sprite - This is the sprite (icon) of the blip. For reference, check here
  • pos - The position of the blip on radar
  • x, y, z - The position of the blip as floats

Example

This commands creates an 8-Ball marker on the radar at player's position.

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "createblip" )
  5. {
  6. CreateClientBlip( pPlayer, BLIP_8BALL, pPlayer.Pos );
  7. }
  8. return 1;
  9. }
  10.  

Notes

The function Player.Pos and call onPlayerCommand were used in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox