Blip.ID

From Liberty Unleashed Wiki
Revision as of 23:54, 28 September 2010 by Juppi (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 Blip class member returns the ID of the blip.

Syntax

  1. int Blip.ID

Arguments

  • none

Example

THis example command creates a new radar blip and prints its ID for the player.

  1.  
  2. function onPlayerCommand( pPlayer, szCommand, szText )
  3. {
  4. if ( szCommand == "createblip" )
  5. {
  6. local pBlip = CreateBlip( BLIP_8BALL, pPlayer.Pos, 0 );
  7. if ( pBlip ) MessagePlayer( "Created Blip ID " + pBlip.ID, pPlayer );
  8. }
  9. return 1;
  10. }
  11.  

Notes

The functions MessagePlayer, Player.Pos and event onPlayerCommand were used in in this example. More info about them in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox